|
Lines 127-133
Link Here
|
| 127 |
import org.eclipse.swt.graphics.Color; |
127 |
import org.eclipse.swt.graphics.Color; |
| 128 |
import org.eclipse.swt.graphics.Cursor; |
128 |
import org.eclipse.swt.graphics.Cursor; |
| 129 |
import org.eclipse.swt.graphics.Font; |
129 |
import org.eclipse.swt.graphics.Font; |
| 130 |
import org.eclipse.swt.graphics.Point; |
|
|
| 131 |
import org.eclipse.swt.layout.GridData; |
130 |
import org.eclipse.swt.layout.GridData; |
| 132 |
import org.eclipse.swt.layout.GridLayout; |
131 |
import org.eclipse.swt.layout.GridLayout; |
| 133 |
import org.eclipse.swt.layout.RowLayout; |
132 |
import org.eclipse.swt.layout.RowLayout; |
|
Lines 988-994
Link Here
|
| 988 |
if (attributeCombo.indexOf(value) != -1) { |
987 |
if (attributeCombo.indexOf(value) != -1) { |
| 989 |
attributeCombo.select(attributeCombo.indexOf(value)); |
988 |
attributeCombo.select(attributeCombo.indexOf(value)); |
| 990 |
} |
989 |
} |
| 991 |
attributeCombo.setSelection(new Point(0,0)); |
990 |
attributeCombo.clearSelection(); |
| 992 |
attributeCombo.addSelectionListener(new SelectionAdapter() { |
991 |
attributeCombo.addSelectionListener(new SelectionAdapter() { |
| 993 |
@Override |
992 |
@Override |
| 994 |
public void widgetSelected(SelectionEvent event) { |
993 |
public void widgetSelected(SelectionEvent event) { |
|
Lines 996-1002
Link Here
|
| 996 |
String sel = attributeCombo.getItem(attributeCombo.getSelectionIndex()); |
995 |
String sel = attributeCombo.getItem(attributeCombo.getSelectionIndex()); |
| 997 |
attribute.setValue(sel); |
996 |
attribute.setValue(sel); |
| 998 |
attributeChanged(attribute); |
997 |
attributeChanged(attribute); |
| 999 |
attributeCombo.setSelection(new Point(0,0)); |
998 |
attributeCombo.clearSelection(); |
| 1000 |
} |
999 |
} |
| 1001 |
} |
1000 |
} |
| 1002 |
}); |
1001 |
}); |