Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLInterface2ClassDiagramFactory.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLInterface2ClassDiagramFactory.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLInterface2ClassDiagramFactory.java b/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLInterface2ClassDiagramFactory.java
new file mode 100644
index 00000000000..47e8a66026d
--- /dev/null
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLInterface2ClassDiagramFactory.java
@@ -0,0 +1,24 @@
+package org.eclipse.papyrus.robotml.diagram.common.factory;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.GmfEditorFactory;
+import org.eclipse.papyrus.robotml.diagram.common.migration.RobotMLReconciler;
+import org.eclipse.papyrus.uml.diagram.clazz.UmlClassDiagramForMultiEditor;
+
+/**
+ * This class is part of the migration of the RobotML diagrams, which,
+ * since Papyrus 1.0 should be opened by the corresponding UML diagram editors,
+ * in this particular case, {@link UmlClassDiagramForMultiEditor}
+ * <p/>
+ * This class registers the corresponding UML editor to the robot-ML type and allows the migration framework to proceed.
+ * <p/>
+ * The other component of the process is {@link RobotMLReconciler} which actually performs migration.
+ */
+public class RobotMLInterface2ClassDiagramFactory extends GmfEditorFactory {
+
+ public static final String OLD_ROBOT_ML_TYPE = "InterfaceDef";
+
+ public RobotMLInterface2ClassDiagramFactory() {
+ super(UmlClassDiagramForMultiEditor.class, OLD_ROBOT_ML_TYPE);
+ }
+
+}

Back to the top