Author: scabanovich
Date: 2008-02-27 07:13:39 -0500 (Wed, 27 Feb 2008)
New Revision: 6601
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/DefaultWizardDataValidator.java
Log:
Small fix for validating multi-paged creation wizard data, -
name uniqueness check by default is to be restricted with the first page.
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/DefaultWizardDataValidator.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/DefaultWizardDataValidator.java 2008-02-27
12:10:38 UTC (rev 6600)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/DefaultWizardDataValidator.java 2008-02-27
12:13:39 UTC (rev 6601)
@@ -39,7 +39,7 @@
XEntityData[] ds = support.getEntityData();
if(ds.length <= step) return;
if(support.action != null) {
- if("true".equals(support.action.getProperty("validator.add"))) {
+ if("true".equals(support.action.getProperty("validator.add"))
&& step == 0) {
String entity = support.action.getProperty("entity");
if(entity == null) entity = ds[step].getModelEntity().getName();
if(!checkChild(support.getTarget(), entity, data)) return;
Show replies by date