summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2013-02-13 09:10:45 (EST)
committer Sven Rottstock2013-02-13 09:10:45 (EST)
commit68571cd4c59536aff77f801a5987ddc24810d34c (patch)
tree95c7931409518eac2fd3774abefd5349482177a0
parent933f0cf69122f04b09a743a0e64be3ae1401b182 (diff)
downloadorg.eclipse.stardust.ide-68571cd4c59536aff77f801a5987ddc24810d34c.zip
org.eclipse.stardust.ide-68571cd4c59536aff77f801a5987ddc24810d34c.tar.gz
org.eclipse.stardust.ide-68571cd4c59536aff77f801a5987ddc24810d34c.tar.bz2
Jira-ID: CRNT-27651
Deleting/Renaming Structured Types does not update the References git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@62984 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl/src/org/eclipse/stardust/model/xpdl/carnot/util/ModelUtils.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl/src/org/eclipse/stardust/model/xpdl/carnot/util/ModelUtils.java b/model/org.eclipse.stardust.model.xpdl/src/org/eclipse/stardust/model/xpdl/carnot/util/ModelUtils.java
index b4b6cb0..aebb9c2 100644
--- a/model/org.eclipse.stardust.model.xpdl/src/org/eclipse/stardust/model/xpdl/carnot/util/ModelUtils.java
+++ b/model/org.eclipse.stardust.model.xpdl/src/org/eclipse/stardust/model/xpdl/carnot/util/ModelUtils.java
@@ -56,6 +56,7 @@ import org.eclipse.stardust.engine.api.model.PredefinedConstants;
import org.eclipse.stardust.engine.api.dto.AuditTrailPersistence;
import org.eclipse.stardust.engine.core.pojo.data.Type;
import org.eclipse.stardust.engine.core.struct.StructuredDataConstants;
+import org.eclipse.stardust.engine.extensions.dms.data.DmsConstants;
import org.eclipse.stardust.model.xpdl.carnot.AccessPointType;
import org.eclipse.stardust.model.xpdl.carnot.ActivityImplementationType;
import org.eclipse.stardust.model.xpdl.carnot.ActivityType;
@@ -975,6 +976,16 @@ public class ModelUtils
}
}
+ if (extensible instanceof DataType)
+ {
+ AttributeType attribute = AttributeUtil.getAttribute(extensible,
+ DmsConstants.RESOURCE_METADATA_SCHEMA_ATT);
+ if (attribute != null)
+ {
+ setReference(attribute, model, "struct"); //$NON-NLS-1$
+ }
+ }
+
// This is for the WebModeler who does not have access to the extension mechanism
if (config == null && extensible instanceof TriggerType)
{