summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-06-07 09:11:23 (EDT)
committerManik Kishore2012-06-12 04:26:29 (EDT)
commite82bd2447e9a1b5f4a306399c14aa9e8d6525431 (patch)
treeaaf3d30728bae8ce386e2e784936b9856ef40380
parent8ab908c8061f84b01abb4223f8743965a8fe1537 (diff)
downloadorg.eclipse.stardust.ide-e82bd2447e9a1b5f4a306399c14aa9e8d6525431.zip
org.eclipse.stardust.ide-e82bd2447e9a1b5f4a306399c14aa9e8d6525431.tar.gz
org.eclipse.stardust.ide-e82bd2447e9a1b5f4a306399c14aa9e8d6525431.tar.bz2
Jira-ID: CRNT-24624
Model created as File connection with copy element option shows incorrect validation warning structured types git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@56915 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.data.structured/src/org/eclipse/stardust/modeling/data/structured/validation/DataValidator.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.data.structured/src/org/eclipse/stardust/modeling/data/structured/validation/DataValidator.java b/modeling/org.eclipse.stardust.modeling.data.structured/src/org/eclipse/stardust/modeling/data/structured/validation/DataValidator.java
index e3176a1..14e4313 100644
--- a/modeling/org.eclipse.stardust.modeling.data.structured/src/org/eclipse/stardust/modeling/data/structured/validation/DataValidator.java
+++ b/modeling/org.eclipse.stardust.modeling.data.structured/src/org/eclipse/stardust/modeling/data/structured/validation/DataValidator.java
@@ -64,7 +64,7 @@ public class DataValidator implements IModelElementValidator
Connection connection = (Connection) model.getConnectionManager()
.findConnection(uri);
if (connection.getAttribute("importByReference") != null //$NON-NLS-1$
- && "false".equals(connection.getAttribute("importByReference"))) //$NON-NLS-1$ //$NON-NLS-2$
+ && !"false".equals(connection.getAttribute("importByReference"))) //$NON-NLS-1$ //$NON-NLS-2$
{
EObject o = model.getConnectionManager().find(
@@ -73,6 +73,10 @@ public class DataValidator implements IModelElementValidator
declarations = referencedModel.getTypeDeclarations();
}
+ else
+ {
+ declarations = model.getTypeDeclarations();
+ }
}
else
{