diff options
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLComponent2CompositeDiagramFactory.java')
-rw-r--r-- | extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLComponent2CompositeDiagramFactory.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLComponent2CompositeDiagramFactory.java b/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLComponent2CompositeDiagramFactory.java new file mode 100644 index 00000000000..25883214ac2 --- /dev/null +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/factory/RobotMLComponent2CompositeDiagramFactory.java @@ -0,0 +1,25 @@ +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.composite.UmlCompositeDiagramForMultiEditor; + + +/** + * 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 UmlCompositeDiagramForMultiEditor} + * <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 RobotMLComponent2CompositeDiagramFactory extends GmfEditorFactory { + + public static final String OLD_ROBOT_ML_TYPE = "componentdef"; + + public RobotMLComponent2CompositeDiagramFactory() { + super(UmlCompositeDiagramForMultiEditor.class, OLD_ROBOT_ML_TYPE); + } + +} |