/** * Create the combo box field editor. * * @param name the name of the preference this field editor works on * @param labelText the label text of the field editor * @param entryNamesAndValues the names (labels) and underlying values to populate the combo widget. These should be * arranged as: { {name1, value1}, {name2, value2}, ...} * @param parent the parent composite */ public ComboFieldEditor(String name, String labelText, String[][] entryNamesAndValues, Composite parent) { init(name, labelText); Assert.isTrue(checkArray(entryNamesAndValues)); fEntryNamesAndValues = entryNamesAndValues; createControl(parent); }
/** * Create the combo box field editor. * * @param name the name of the preference this field editor works on * @param labelText the label text of the field editor * @param entryNamesAndValues the names (labels) and underlying values to populate the combo widget. These should be * arranged as: { {name1, value1}, {name2, value2}, ...} * @param parent the parent composite */ public ComboFieldEditor(String name, String labelText, String[][] entryNamesAndValues, Composite parent) { init(name, labelText); Assert.isTrue(checkArray(entryNamesAndValues)); fEntryNamesAndValues = entryNamesAndValues; createControl(parent); }
/** * Create the combo box field editor. * * @param name the name of the preference this field editor works on * @param labelText the label text of the field editor * @param entryNamesAndValues the names (labels) and underlying values to populate the combo widget. These should be * arranged as: { {name1, value1}, {name2, value2}, ...} * @param parent the parent composite */ public ComboFieldEditor(String name, String labelText, String[][] entryNamesAndValues, Composite parent) { init(name, labelText); Assert.isTrue(checkArray(entryNamesAndValues)); fEntryNamesAndValues = entryNamesAndValues; createControl(parent); }