Bug 578809 - [SequenceDiagram][Reveal with ModelExplorer] Interaction selection throws an Exception
Summary: [SequenceDiagram][Reveal with ModelExplorer] Interaction selection throws an...
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.0.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-17 08:09 EST by Vincent Lorenzo CLA
Modified: 2022-02-17 08:09 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2022-02-17 08:09:51 EST
Steps to reproduce : 
	1. Create a sequence diagram with a lifeline and a message found
	2. In the ModelExplorer, activate the "Link With Editor" feature
	3. Select the Interaction in the ModelExplorer, you get an exception. 
	
Initial description of this bug is available here : https://www.eclipse.org/forums/index.php/t/1110076/

java.lang.IllegalArgumentException: An EditPart has to be selectable (isSelectable() == true) in order to get selected.
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:66)
	at org.eclipse.gef.editparts.AbstractEditPart.setSelected(AbstractEditPart.java:1060)
	at org.eclipse.gef.SelectionManager.setSelection(SelectionManager.java:308)
	at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:751)
	at org.eclipse.papyrus.infra.gmfdiag.common.SynchronizableGmfDiagramEditor.revealElement(SynchronizableGmfDiagramEditor.java:177)
	at org.eclipse.papyrus.infra.gmfdiag.common.SynchronizableGmfDiagramEditor.revealElement(SynchronizableGmfDiagramEditor.java:118)
	at org.eclipse.papyrus.infra.services.navigation.service.impl.NavigationServiceImpl.navigate(NavigationServiceImpl.java:415)
	at org.eclipse.papyrus.infra.services.openelement.service.impl.OpenElementServiceImpl$1.run(OpenElementServiceImpl.java:116)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
	at org.eclipse.papyrus.infra.services.openelement.service.impl.OpenElementServiceImpl.reveal(OpenElementServiceImpl.java:102)
	at org.eclipse.papyrus.infra.services.openelement.service.impl.OpenElementServiceImpl.openElement(OpenElementServiceImpl.java:92)
	at org.eclipse.papyrus.infra.gmfdiag.navigation.ui.DynamicNavigate.revealObject(DynamicNavigate.java:76)
	at org.eclipse.papyrus.infra.gmfdiag.navigation.ui.DiagramDynamicNavigate$3.widgetSelected(DiagramDynamicNavigate.java:88)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4060)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3632)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	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:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)