Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Cannot open former diagrams in Papyrus 3.0(Diagram defined in DSML in Papyrus 2.0 cannot be read in Papyrus 3.0)
Cannot open former diagrams in Papyrus 3.0 [message #1765529] Mon, 12 June 2017 07:07 Go to next message
THEOBALD Maurice is currently offline THEOBALD MauriceFriend
Messages: 19
Registered: February 2017
Junior Member
Hello,

I'm currently porting my DSML from Papyrus 2.0 to Papyrus 3.0.
I ported the diagram defined in the former Viewpoint architecture to the new Architecture Framework of Papyrus 3.0.

The problem is when I try to open a diagram created with the DSML on Papyrus 2.0 I get the following exception :

java.lang.ClassCastException: org.eclipse.papyrus.infra.viewpoints.configuration.impl.PapyrusViewImpl cannot be cast to org.eclipse.papyrus.infra.viewpoints.configuration.PapyrusDiagram
at org.eclipse.papyrus.uml.architecture.migration.UMLDiagramReconciler_1_3_0.getDiagramKind(UMLDiagramReconciler_1_3_0.java:53)
at org.eclipse.papyrus.infra.gmfdiag.common.reconciler.DiagramReconciler_1_3_0.getReconcileCommand(DiagramReconciler_1_3_0.java:46)
at org.eclipse.papyrus.infra.gmfdiag.common.helper.ReconcileHelper.buildReconcileCommand(ReconcileHelper.java:122)
at org.eclipse.papyrus.infra.gmfdiag.common.helper.ReconcileHelper.reconcileDiagram(ReconcileHelper.java:69)
at org.eclipse.papyrus.infra.gmfdiag.common.SynchronizableGmfDiagramEditor.doSetInput(SynchronizableGmfDiagramEditor.java:364)
at org.eclipse.papyrus.uml.diagram.statemachine.UmlStateMachineDiagramForMultiEditor.setInput(UmlStateMachineDiagramForMultiEditor.java:144)
at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEditor.java:346)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init(DiagramEditor.java:653)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.init(DiagramDocumentEditor.java:126)
at org.eclipse.papyrus.uml.diagram.statemachine.UmlStateMachineDiagramForMultiEditor.init(UmlStateMachineDiagramForMultiEditor.java:94)
at org.eclipse.papyrus.infra.core.sasheditor.internal.EditorPart.createEditorPartControl(EditorPart.java:291)
at org.eclipse.papyrus.infra.core.sasheditor.internal.EditorPart.createPartControl(EditorPart.java:199)
at org.eclipse.papyrus.infra.core.sasheditor.internal.TabFolderPart.createChildPart(TabFolderPart.java:1056)
at org.eclipse.papyrus.infra.core.sasheditor.internal.TabFolderPart.createTabItem(TabFolderPart.java:977)
at org.eclipse.papyrus.infra.core.sasheditor.internal.TabFolderPart.synchronize2(TabFolderPart.java:901)
at org.eclipse.papyrus.infra.core.sasheditor.internal.RootPart.synchronize2(RootPart.java:139)
at org.eclipse.papyrus.infra.core.sasheditor.internal.SashWindowsContainer.refreshTabsInternal(SashWindowsContainer.java:751)
at org.eclipse.papyrus.infra.core.sasheditor.internal.SashWindowsContainer.refreshTabs(SashWindowsContainer.java:704)
at org.eclipse.papyrus.infra.core.sasheditor.editor.AbstractMultiPageSashEditor.doRefreshTabs(AbstractMultiPageSashEditor.java:248)
at org.eclipse.papyrus.infra.core.sasheditor.editor.AbstractMultiPageSashEditor.access$1(AbstractMultiPageSashEditor.java:246)
at org.eclipse.papyrus.infra.core.sasheditor.editor.AbstractMultiPageSashEditor$2.run(AbstractMultiPageSashEditor.java:241)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:233)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:144)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4889)
at org.eclipse.papyrus.infra.core.sasheditor.editor.AbstractMultiPageSashEditor.refreshTabs(AbstractMultiPageSashEditor.java:237)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.refreshTabs(CoreMultiDiagramEditor.java:1187)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$6.run(CoreMultiDiagramEditor.java:1176)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4213)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1044)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)

Any idea to fix that ?

Regards,

Maurice
Re: Cannot open former diagrams in Papyrus 3.0 [message #1765885 is a reply to message #1765529] Wed, 14 June 2017 09:14 Go to previous message
Florian Noyrit is currently offline Florian NoyritFriend
Messages: 15
Registered: February 2016
Location: Grenoble, France
Junior Member
Hi,

You may need to implement your own model reconciler (cf. "org.eclipse.papyrus.infra.gmfdiag.common.diagramReconciler" extension point)

Best regards.

/Florian
Previous Topic:Copy/Paste element and resize
Next Topic: BDD in XMI format
Goto Forum:
  


Current Time: Thu Sep 20 01:51:41 GMT 2018

Powered by FUDForum. Page generated in 0.01902 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top