1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / preferences / OptionsConfigurationBlock.java
index ebf9ed3..7a304ef 100644 (file)
@@ -40,7 +40,7 @@ import org.eclipse.swt.events.ModifyListener;
 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;
@@ -273,39 +273,39 @@ public abstract class OptionsConfigurationBlock {
                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) {
@@ -384,9 +384,9 @@ public abstract class OptionsConfigurationBlock {
                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
@@ -552,16 +552,16 @@ public abstract class OptionsConfigurationBlock {
                }
        }
 
-       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--) {
@@ -574,11 +574,11 @@ public abstract class OptionsConfigurationBlock {
                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);
+//     }
 
 }