summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2002-10-28 14:28:41 +0000
committerGrant Gayed <ggayed>2002-10-28 14:28:41 +0000
commit19a41e685c490af8359677d3b543a697b90a44df (patch)
tree0830a4d17fb3c7759de015e38996e02d8d1ed87a
parent30f086a548143adf7007d8a55d2b88412a24b335 (diff)
downloadeclipse.platform.swt-19a41e685c490af8359677d3b543a697b90a44df.tar.gz
eclipse.platform.swt-19a41e685c490af8359677d3b543a697b90a44df.tar.xz
eclipse.platform.swt-19a41e685c490af8359677d3b543a697b90a44df.zip
get rid of incorrect static reference warnings
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java
index 823bb6c078..a77dd2e676 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java
@@ -647,15 +647,15 @@ protected void layout(Composite composite, boolean flushCache) {
widgetX = columnX;
// Calculate the x and width values for the control.
- if (hAlign == spec.CENTER) {
+ if (hAlign == GridData.CENTER) {
widgetX = widgetX + (spannedWidth / 2) - (childExtent.x / 2);
} else
- if (hAlign == spec.END) {
+ if (hAlign == GridData.END) {
widgetX = widgetX + spannedWidth - childExtent.x - spec.horizontalIndent;
} else {
widgetX = widgetX + spec.horizontalIndent;
}
- if (hAlign == spec.FILL) {
+ if (hAlign == GridData.FILL) {
widgetW = spannedWidth - spec.horizontalIndent;
widgetX = columnX + spec.horizontalIndent;
} else {
@@ -665,15 +665,15 @@ protected void layout(Composite composite, boolean flushCache) {
// Calculate the y and height values for the control.
vAlign = spec.verticalAlignment;
widgetY = rowY;
- if (vAlign == spec.CENTER) {
+ if (vAlign == GridData.CENTER) {
widgetY = widgetY + (spannedHeight / 2) - (childExtent.y / 2);
} else
- if (vAlign == spec.END) {
+ if (vAlign == GridData.END) {
widgetY = widgetY + spannedHeight - childExtent.y;
} else {
widgetY = widgetY;
}
- if (vAlign == spec.FILL) {
+ if (vAlign == GridData.FILL) {
widgetH = spannedHeight;
widgetY = rowY;
} else {