Author: scabanovich
Date: 2009-09-14 12:36:00 -0400 (Mon, 14 Sep 2009)
New Revision: 17550
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/CheckListFieldEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2607
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/CheckListFieldEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/CheckListFieldEditor.java 2009-09-14
16:18:22 UTC (rev 17549)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/CheckListFieldEditor.java 2009-09-14
16:36:00 UTC (rev 17550)
@@ -16,6 +16,7 @@
import java.util.Set;
import java.util.StringTokenizer;
+import org.jboss.tools.common.model.ui.IAttributeErrorProvider;
import org.jboss.tools.common.model.ui.IValueChangeListener;
import org.jboss.tools.common.model.ui.IValueProvider;
import org.jboss.tools.common.model.ui.attribute.adapter.CheckListAdapter;
@@ -123,6 +124,7 @@
public void setEnabled(boolean enabled){
super.setEnabled(enabled);
+ updateErrorState();
}
public void setPropertyEditor(IPropertyEditor propertyEditor) {
@@ -133,6 +135,7 @@
contentProvider =
(IContentProvider)propertyEditor.getAdapter(ITreeContentProvider.class);
labelProvider = (ILabelProvider)propertyEditor.getAdapter(ILabelProvider.class);
// Object input = propertyEditor.getInput();
+ setErrorProvider((IAttributeErrorProvider)propertyEditor.getAdapter(IAttributeErrorProvider.class));
if(propertyEditor.getInput() instanceof CheckListAdapter) {
separator = "" +
((CheckListAdapter)propertyEditor.getInput()).getSeparator();
}
@@ -142,6 +145,7 @@
int lock = 0;
public void propertyChange(PropertyChangeEvent event) {
+ super.propertyChange(event);
valueProvider.removeValueChangeListener(this);
if (IPropertyEditor.VALUE.equals(event.getPropertyName())) {
Object v = event.getNewValue();
@@ -244,4 +248,5 @@
public void delete() {
}
+
}