[
https://issues.jboss.org/browse/JBIDE-12056?page=com.atlassian.jira.plugi...
]
Dan Florian resolved JBIDE-12056.
---------------------------------
Resolution: Done
Fixed errors that occurred when adding/editing property definition value constraints and
default values. Problem was new/changed values were being added to an unmodifiable list.
Fix has been checked into JBT trunk and branch jbosstools-3.3.x.
Exception Adding/Editing Property Definition's Value Constraint
In CND Editor
-----------------------------------------------------------------------------
Key: JBIDE-12056
URL:
https://issues.jboss.org/browse/JBIDE-12056
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: modeshape
Affects Versions: 3.3.0.Beta2-SOA
Reporter: Dan Florian
Assignee: Dan Florian
Priority: Critical
Fix For: 3.3.0.Beta3-SOA
Attachments: JBIDE-12056-2.patch, JBIDE-12056.patch
In CND Editor, if you select a property in the Properties Section table, and double-click
the table row or click the editor toolbar button, the Property Definition Editor dialog
opens. In the property dialog, if you Add or Edit a value constraint, a Value Editor
dialog is displayed. If the user types in the textfield an error occurs and the OK button
can never be enabled. Here is the error from the log:
java.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:131)
at java.util.AbstractList.add(AbstractList.java:91)
at
org.jboss.tools.modeshape.jcr.ui.cnd.PropertyDialog$31$1.validate(PropertyDialog.java:1193)
at
org.jboss.tools.modeshape.jcr.ui.cnd.StringValueEditorDialog.updateState(StringValueEditorDialog.java:185)
at
org.jboss.tools.modeshape.jcr.ui.cnd.StringValueEditorDialog.handleValueChanged(StringValueEditorDialog.java:172)
at
org.jboss.tools.modeshape.jcr.ui.cnd.StringValueEditorDialog$1.modifyText(StringValueEditorDialog.java:149)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira