Class ModifyDialogTabPage.ComboPreference

java.lang.Object
java.util.Observable
org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.Preference
org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.ComboPreference
Enclosing class:
ModifyDialogTabPage

protected final class ModifyDialogTabPage.ComboPreference extends ModifyDialogTabPage.Preference
Wrapper around a Combo box.
  • Constructor Details

    • ComboPreference

      public ComboPreference(org.eclipse.swt.widgets.Composite composite, int numColumns, Map<String,String> preferences, String key, String[] values, String text, String[] items)
      Create a new ComboPreference.
      Parameters:
      composite - The composite on which the SWT widgets are added.
      numColumns - The number of columns in the composite's GridLayout.
      preferences - The map to store the values.
      key - The key to store the values.
      values - An array of n elements indicating the values to store for each selection.
      text - The label text for this Preference.
      items - An array of n elements indicating the text to be written in the combo box.
  • Method Details

    • comboSelected

      protected void comboSelected(int index)
    • updateWidget

      protected void updateWidget()
      Description copied from class: ModifyDialogTabPage.Preference
      To be implemented in subclasses. Update the SWT widgets when the state of this object has changed (enabled, key, ...).
      Specified by:
      updateWidget in class ModifyDialogTabPage.Preference
    • getSelectedItem

      public String getSelectedItem()
    • hasValue

      public boolean hasValue(String value)
    • getControl

      public org.eclipse.swt.widgets.Control getControl()
      Description copied from class: ModifyDialogTabPage.Preference
      Returns the main control of a preference, which is mainly used to manage the focus. This may be null if the preference doesn't have a control which is able to have the focus.
      Specified by:
      getControl in class ModifyDialogTabPage.Preference
      Returns:
      The main control