Author: scabanovich
Date: 2008-03-14 14:13:51 -0400 (Fri, 14 Mar 2008)
New Revision: 6940
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/MultipleChoiceFieldEditor.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/MutableComboBoxFieldEditor.java
Log:
JBIDE-1849
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/MultipleChoiceFieldEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/MultipleChoiceFieldEditor.java 2008-03-14
17:16:31 UTC (rev 6939)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/MultipleChoiceFieldEditor.java 2008-03-14
18:13:51 UTC (rev 6940)
@@ -257,7 +257,7 @@
}
}
- protected void resetChoices() {
+ public void resetChoices() {
updateChoices();
buttonsParent.pack();
buttonsParent.layout();
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/MutableComboBoxFieldEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/MutableComboBoxFieldEditor.java 2008-03-14
17:16:31 UTC (rev 6939)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/MutableComboBoxFieldEditor.java 2008-03-14
18:13:51 UTC (rev 6940)
@@ -130,10 +130,7 @@
changeButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent evt) {
String newValue = changePressed();
- if (newValue != null) {
- getComboField().setItems(getTags());
- setStringValue(newValue);
- }
+ setNewValue(newValue);
}
});
changeButton.addDisposeListener(new DisposeListener() {
@@ -146,6 +143,13 @@
}
return changeButton;
}
+
+ public void setNewValue(String newValue) {
+ if (newValue != null) {
+ getComboField().setItems(getTags());
+ setStringValue(newValue);
+ }
+ }
public int getNumberOfControls() {
return 3;
Show replies by date