import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
+//import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
return comboBox;
}
- protected void addInversedComboBox(Composite parent, String label,
- String key, String[] values, String[] valueLabels, int indent) {
- ControlData data = new ControlData(key, values);
-
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalIndent = indent;
- gd.horizontalSpan = 3;
-
- Composite composite = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- layout.numColumns = 2;
- composite.setLayout(layout);
- composite.setLayoutData(gd);
-
- Combo comboBox = new Combo(composite, SWT.READ_ONLY);
- comboBox.setItems(valueLabels);
- comboBox.setData(data);
- comboBox.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
- comboBox.addSelectionListener(getSelectionListener());
-
- Label labelControl = new Label(composite, SWT.LEFT | SWT.WRAP);
- labelControl.setText(label);
- labelControl.setLayoutData(new GridData());
-
- fLabels.put(comboBox, labelControl);
-
- String currValue = (String) fWorkingValues.get(key);
- comboBox.select(data.getSelection(currValue));
-
- fComboBoxes.add(comboBox);
- }
+// protected void addInversedComboBox(Composite parent, String label,
+// String key, String[] values, String[] valueLabels, int indent) {
+// ControlData data = new ControlData(key, values);
+//
+// GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
+// gd.horizontalIndent = indent;
+// gd.horizontalSpan = 3;
+//
+// Composite composite = new Composite(parent, SWT.NONE);
+// GridLayout layout = new GridLayout();
+// layout.marginHeight = 0;
+// layout.marginWidth = 0;
+// layout.numColumns = 2;
+// composite.setLayout(layout);
+// composite.setLayoutData(gd);
+//
+// Combo comboBox = new Combo(composite, SWT.READ_ONLY);
+// comboBox.setItems(valueLabels);
+// comboBox.setData(data);
+// comboBox.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
+// comboBox.addSelectionListener(getSelectionListener());
+//
+// Label labelControl = new Label(composite, SWT.LEFT | SWT.WRAP);
+// labelControl.setText(label);
+// labelControl.setLayoutData(new GridData());
+//
+// fLabels.put(comboBox, labelControl);
+//
+// String currValue = (String) fWorkingValues.get(key);
+// comboBox.select(data.getSelection(currValue));
+//
+// fComboBoxes.add(comboBox);
+// }
protected Text addTextField(Composite parent, String label, String key,
int indent, int widthHint) {
validateSettings(key, number);
}
- protected boolean checkValue(String key, String value) {
- return value.equals(fWorkingValues.get(key));
- }
+// protected boolean checkValue(String key, String value) {
+// return value.equals(fWorkingValues.get(key));
+// }
/*
* (non-javadoc) Update fields and validate. @param changedKey Key that
}
}
- protected Button getCheckBox(String key) {
- for (int i = fCheckBoxes.size() - 1; i >= 0; i--) {
- Button curr = (Button) fCheckBoxes.get(i);
- ControlData data = (ControlData) curr.getData();
- if (key.equals(data.getKey())) {
- return curr;
- }
- }
- return null;
- }
+// protected Button getCheckBox(String key) {
+// for (int i = fCheckBoxes.size() - 1; i >= 0; i--) {
+// Button curr = (Button) fCheckBoxes.get(i);
+// ControlData data = (ControlData) curr.getData();
+// if (key.equals(data.getKey())) {
+// return curr;
+// }
+// }
+// return null;
+// }
protected Combo getComboBox(String key) {
for (int i = fComboBoxes.size() - 1; i >= 0; i--) {
return null;
}
- protected void setComboEnabled(String key, boolean enabled) {
- Combo combo = getComboBox(key);
- Label label = (Label) fLabels.get(combo);
- combo.setEnabled(enabled);
- label.setEnabled(enabled);
- }
+// protected void setComboEnabled(String key, boolean enabled) {
+// Combo combo = getComboBox(key);
+// Label label = (Label) fLabels.get(combo);
+// combo.setEnabled(enabled);
+// label.setEnabled(enabled);
+// }
}