Problem with GraphicalViewer in GWT GUI Designer

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Problem with GraphicalViewer in GWT GUI Designer

Postby nestra » Thu Feb 10, 2011 2:15 am

Hello!

I have a problem with Google Web Toolkit in RCP application.

Image

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!
nestra
 
Posts: 3
Joined: Thu Feb 10, 2011 2:00 am

Re: Problem with GraphicalViewer in GWT GUI Designer

Postby gnebling » Fri Feb 18, 2011 11:27 am

Code: Select all
ui.click(new XYLocator(new SWTWidgetLocator(GraphicalViewer$1Locator.class, 2,
        new SWTWidgetLocator(ViewersComposite.class)), 278, 231));


GraphicalViewer$1Locator is an internal class. Try commenting that line and see if that helps.
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron