I have a problem with Google Web Toolkit in RCP application.
I want to put a widget in the white box "Empty Composite", but recorder don't find the correct locator:
- Code: Select all
ui.click(new XYLocator(new SWTWidgetLocator(FigureCanvas.class), 43, 185)); // label widgets
ui.click(new XYLocator(new SWTWidgetLocator(GraphicalViewer$1Locator.class, 2,
new SWTWidgetLocator(ViewersComposite.class)), 278, 231));
Problem : Class GraphicalViewer$1Locator don't exist.
After i try:
- Code: Select all
protected static class GraphicalViewer$1Locator extends FigureClassLocator
{
private static final long serialVersionUID = 1L;
public GraphicalViewer$1Locator()
{
super("com.instantiations.gef.graphical.GraphicalViewer$1");
}
}
...
ui.click(new XYLocator(new SWTWidgetLocator(FigureCanvas.class), 31, 96));
ui.click(new GraphicalViewer$1Locator());
But i have a WidgetnotfoundException.
Any suggestions?
Thanks!