summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-07-11 06:59:49 (EDT)
committer Manik Kishore2012-07-19 01:37:37 (EDT)
commit2d31ab0aaad3709fccd7df2391c7e421d35b0e0e (patch)
tree9ba60eea8b2d0245da892d3015a745ac5a0b36ca
parent7a8aa752847698d84d1cc6010b3c332bfda9c6cb (diff)
downloadorg.eclipse.stardust.ide-2d31ab0aaad3709fccd7df2391c7e421d35b0e0e.zip
org.eclipse.stardust.ide-2d31ab0aaad3709fccd7df2391c7e421d35b0e0e.tar.gz
org.eclipse.stardust.ide-2d31ab0aaad3709fccd7df2391c7e421d35b0e0e.tar.bz2
CRNT-25134 Pepper: Cross-Model Support: Refactor Model Service
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@57578 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
index 0a2998f..55b4463 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
@@ -20,6 +20,7 @@ import static org.eclipse.stardust.model.xpdl.builder.BpmModelBuilder.newRouteAc
import static org.eclipse.stardust.model.xpdl.builder.BpmModelBuilder.newStructVariable;
import static org.eclipse.stardust.model.xpdl.builder.BpmModelBuilder.newSubProcessActivity;
+
import java.util.List;
import org.eclipse.emf.common.util.URI;
@@ -57,10 +58,23 @@ import org.eclipse.stardust.model.xpdl.carnot.TransitionConnectionType;
import org.eclipse.stardust.model.xpdl.carnot.util.CarnotConstants;
import org.eclipse.stardust.model.xpdl.carnot.util.ModelUtils;
import org.eclipse.stardust.model.xpdl.xpdl2.TypeDeclarationType;
+import org.eclipse.stardust.model.xpdl.xpdl2.XpdlFactory;
import org.eclipse.stardust.modeling.repository.common.descriptors.ReplaceModelElementDescriptor;
public class MBFacade
{
+ public static void createTypeDeclaration(ModelType model, String typeId, String typeName)
+ {
+ TypeDeclarationType structuredDataType = XpdlFactory.eINSTANCE
+ .createTypeDeclarationType();
+
+ structuredDataType.setId(typeId);
+ structuredDataType.setName(typeName);
+
+ model.getTypeDeclarations().getTypeDeclaration()
+ .add(structuredDataType);
+ }
+
public static void createStructuredData(ModelType model, String stripFullId_,
String id, String name, String structuredDataFullId)
{