Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » [Sequence diagram] Interaction navigation(Navigation to another sequence diagram doesn't work)
[Sequence diagram] Interaction navigation [message #1836947] Tue, 19 January 2021 16:12 Go to next message
Antoine BLANGY is currently offline Antoine BLANGYFriend
Messages: 2
Registered: January 2021
Location: Paris, Le Plessis Robinso...
Junior Member
Hello all !
This is my first contribution to this forum.
I am testing papyrus from while and from more than a year, I use it daily in a software design process.
Since the beginning of this process, I experience a frustrating behaviour in sequence diagram.
If in an interaction I include another interaction with an "InteractionUse", I am not able to navigate to the representation of this included interaction with the navigation menu or by double clicking on it.

You could find in attachment two screen shots of a simple example of what I do.
In "sequence2", if I double click on "InteractionSequence1" I expect that the diagram of "sequence1" is opened.
Instead, in the model explorer, I can see that an object called "Diagram" has been created.
With the navigation menu, I can only go to the "InteractionUse6".

In the process, I create "sequence1" first, then "sequence2" and select "InteractionSequence1" in the "Refers to" attribute of the InteractionUse.
This example has been done on Papyrus 2020-12-5.0.0 on linux with the following jvm
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment 18.9 (build 11.0.9.1+1)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.9.1+1, mixed mode, sharing)

I experience the same issue with papyrus 2020-03-4.7.0 with the same jvm.

I don't known what I am doing wrong or if I expect something that is not longer supported.
Any help will be appreciated.

With kind regards,
Antoine
Re: [Sequence diagram] Interaction navigation [message #1836982 is a reply to message #1836947] Wed, 20 January 2021 14:40 Go to previous messageGo to next message
Yoann Farré is currently offline Yoann FarréFriend
Messages: 235
Registered: November 2017
Senior Member
Hello,
Not exactly the same issue but I reported a bug in the use of InteractionUse elements in sequence diagrams: 553618
I agree with you that this feature is not well supported in the current version of Papyrus.
Yoann.

Re: [Sequence diagram] Interaction navigation [message #1836993 is a reply to message #1836982] Wed, 20 January 2021 17:17 Go to previous message
Antoine BLANGY is currently offline Antoine BLANGYFriend
Messages: 2
Registered: January 2021
Location: Paris, Le Plessis Robinso...
Junior Member
Hello Yoan,

Thank for your reply.
I take a look on this bug report and check here if I reproduce the same log output with my model and I have.
I have this exception with 2020-03-4.7.0 when I double click on an interactionuser, and the "Diagram" object created in the interactionuse in the model explorer.

!ENTRY org.eclipse.gmf.runtime.diagram.ui 4 4 2021-01-20 18:04:38.414
!MESSAGE execute
!STACK 0
org.eclipse.core.commands.ExecutionException: Can't open diagram
        at org.eclipse.papyrus.uml.diagram.sequence.edit.policies.OpenDiagramEditPolicy$OpenDiagramCommand.doExecuteWithResult(OpenDiagramEditPolicy.java:116)
        at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:247)
        at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
        at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:403)
        at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
        at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:496)
        at org.eclipse.papyrus.infra.emf.gmf.command.CheckedOperationHistory.doExecute(CheckedOperationHistory.java:208)
        at org.eclipse.papyrus.infra.emf.gmf.command.CheckedOperationHistory.execute(CheckedOperationHistory.java:197)
        at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack.execute(DiagramCommandStack.java:206)
        at org.eclipse.papyrus.commands.CheckedDiagramCommandStack.execute(CheckedDiagramCommandStack.java:55)
        at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack.execute(DiagramCommandStack.java:156)
        at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.performRequest(GraphicalEditPart.java:1125)
        at org.eclipse.papyrus.infra.gmfdiag.common.snap.copy.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:208)
        at org.eclipse.papyrus.infra.gmfdiag.common.snap.copy.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:150)
        at org.eclipse.papyrus.infra.gmfdiag.common.snap.copy.DragEditPartsTrackerEx.handleDoubleClick(DragEditPartsTrackerEx.java:259)
        at org.eclipse.papyrus.infra.gmfdiag.common.snap.copy.AbstractTool.mouseDoubleClick(AbstractTool.java:1067)
        at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:527)
        at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:231)
        at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:291)
        at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:518)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:200)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5687)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1423)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4955)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4448)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049)
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
        at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
Caused by: org.eclipse.ui.PartInitException: Unable to open editor, unknown editor ID: 'org.eclipse.papyrus.uml.diagram.sequence.part.UMLDiagramEditorID'
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3142)
        at org.eclipse.ui.internal.WorkbenchPage.lambda$9(WorkbenchPage.java:3100)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3098)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3068)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3051)
        at org.eclipse.papyrus.uml.diagram.sequence.edit.policies.OpenDiagramEditPolicy$OpenDiagramCommand.doExecuteWithResult(OpenDiagramEditPolicy.java:113)
        ... 47 more


I am testing 2020-12-5.0.0 to check if we can upgrade the version we use, and I have the same output when I double click on the same interactionuse.
Do you want me to comment the bug report by reporting what I observe ?

Antoine,
Previous Topic:How to inject a custom NavigationTarget to support Model Explorer customization?
Next Topic:State machine animation
Goto Forum:
  


Current Time: Thu Apr 25 21:29:24 GMT 2024

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

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

Back to the top