Bug 485567 - Generic tool called too many times
Summary: Generic tool called too many times
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-01-11 11:52 EST by Esteban DUGUEPEROUX CLA
Modified: 2016-01-15 11:38 EST (History)
1 user (show)

See Also:


Attachments
Sample project to reproduce (141.20 KB, application/zip)
2016-01-11 11:52 EST, Esteban DUGUEPEROUX CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Esteban DUGUEPEROUX CLA 2016-01-11 11:52:51 EST
Created attachment 259109 [details]
Sample project to reproduce

"Select Model Element Variable" evaluated several time

Scenario to reproduce :

1. Import project from attached archive
2. Launch a runtime and import "ServiceInWorkspaceTests.design" and "ServiceInWorkspaceTests.test" projects
3. Open the diagram and try to use "MoveComponent" tool from palette and move cursor hover diagram => KO the select model element dialog is displayed and a cancel display it again with an entry in error log :

org.eclipse.core.runtime.OperationCanceledException
	at org.eclipse.sirius.business.api.helper.task.InitInterpreterVariablesTask.execute(InitInterpreterVariablesTask.java:180)
	at org.eclipse.sirius.diagram.tools.internal.command.builders.GenericToolCommandBuilder.checkGenericToolPrecondition(GenericToolCommandBuilder.java:151)
	at org.eclipse.sirius.diagram.tools.internal.command.builders.GenericToolCommandBuilder.buildCommand(GenericToolCommandBuilder.java:73)
	at org.eclipse.sirius.diagram.tools.internal.command.UndoRedoCapableEMFCommandFactory.buildGenericToolCommandFromTool(UndoRedoCapableEMFCommandFactory.java:655)
	at org.eclipse.sirius.diagram.ui.graphical.edit.policies.CreationUtil.getGenericToolCommand(CreationUtil.java:355)
	at org.eclipse.sirius.diagram.ui.graphical.edit.policies.LaunchToolEditPolicy.createCommandFromRequest(LaunchToolEditPolicy.java:166)
	at org.eclipse.sirius.diagram.ui.graphical.edit.policies.LaunchToolEditPolicy.getCreateCommand(LaunchToolEditPolicy.java:102)
	at org.eclipse.sirius.diagram.ui.graphical.edit.policies.LaunchToolEditPolicy.getCommand(LaunchToolEditPolicy.java:82)
	at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:502)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$1(GraphicalEditPart.java:1)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$1.run(GraphicalEditPart.java:482)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:328)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.getCommand(GraphicalEditPart.java:477)
	at org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDDiagramEditPart.getCommand(AbstractDDiagramEditPart.java:367)
	at org.eclipse.gef.tools.TargetingTool.getCommand(TargetingTool.java:123)
	at org.eclipse.gef.tools.CreationTool.handleMove(CreationTool.java:253)
	at org.eclipse.gef.tools.AbstractTool.mouseMove(AbstractTool.java:1182)
	at org.eclipse.gef.EditDomain.mouseMove(EditDomain.java:287)
	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseMoved(DomainEventDispatcher.java:365)
	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove(LightweightSystem.java:543)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
	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:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)