As I already wrote (15.04.2010 Locate a GEF figure in a view), I would like to know if that is possible and eventually HOW. Here the old question:
I am trying to locate a GEF figure that is in a View not in an Editor.
I tried with this locator:
ui.click(new LRLocator(0, new FigureClassLocator("org.eclipse.draw2d.Ellipse")));
and dosen´t work even if an Ellipse is in the figure.
I tried with named figure:
ui.click(new NamedFigureLocator("my.figure"));
(of course I gave a name to the Figure and the proper method)
When I have an Editor all is working but if the GEF is in a View I can find only the FigureCanvas with the following locator.
final XYLocator pn = new XYLocator(new SWTWidgetLocator(FigureCanvas.class, new ViewLocator("fhmi.views.systemTracks")), 60, 60);
It seems there are no ways to locate the figure. Is that true? If there are some ways could someone tell me how I have to do?
Thanks
I am using
version 5.0.0.r35x201003301502 for Eclipse 3.5