itemisCREATE / statecharts

YAKINDU Statechart Tools (http://www.statecharts.org)
Eclipse Public License 1.0
176 stars 86 forks source link

"Could not find model element for selection" exception for `find references` on transition triggers #2298

Closed tangele closed 6 years ago

tangele commented 6 years ago
  1. create new statechart file
  2. add in event BB, to definition section
  3. create self transition using trigger BB
  4. select BB inside the transition properties view
  5. do a find references search

Error dialog pops up:

Error in Reference Search

Reason: Could not find model element for selection!

Details:

Could not find model element for selection!
Could not find model element for selection!
  java.lang.Thread.getStackTrace(Unknown Source)
  com.yakindu.sct.search.ui.handler.ModelReferenceHandler.execute(ModelReferenceHandler.java:39)
  org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
  org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:93)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  java.lang.reflect.Method.invoke(Unknown Source)
  org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
  org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318)
  org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252)
  org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:161)
  org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
  org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
  org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
  org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:204)
  org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433)
  org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:446)
  org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:472)
  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
  org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
  org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
  org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
  org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1170)
  org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
  org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1059)
  org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
  org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:667)
  org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:597)
  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
  org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
  org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  java.lang.reflect.Method.invoke(Unknown Source)
  org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
  org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
  org.eclipse.equinox.launcher.Main.run(Main.java:1498)
  org.eclipse.equinox.launcher.Main.main(Main.java:1471)
tangele commented 6 years ago

default2_0

in the grapical editor (not the properties view):

again, not fully deterministic?! (happens sometimes, not always)