Package org.eclipse.wb.tests.gef

Examples of org.eclipse.wb.tests.gef.UiContext.click()


    // set device
    {
      UiContext context = new UiContext();
      // click ToolItem to open Menu
      ToolItem deviceToolItem = context.getToolItem("No device");
      context.click(deviceToolItem, SWT.ARROW);
      // click "device" MenuItem
      {
        Menu menu = (Menu) deviceToolItem.getData("designTimeMenu");
        MenuItem menuItem = context.getMenuItem(menu, "QVGA");
        context.click(menuItem);
View Full Code Here


      context.click(deviceToolItem, SWT.ARROW);
      // click "device" MenuItem
      {
        Menu menu = (Menu) deviceToolItem.getData("designTimeMenu");
        MenuItem menuItem = context.getMenuItem(menu, "QVGA");
        context.click(menuItem);
      }
    }
    // new bounds
    assertEquals(new Rectangle(25, 25, 240, 320), panelFigure.getBounds());
    // flip orientation
View Full Code Here

    // flip orientation
    {
      UiContext context = new UiContext();
      ToolItem deviceToolItem = context.getToolItem("Flip orientation");
      // PORTRAIT -> LANDSCAPE
      context.click(deviceToolItem);
      assertEquals(new Rectangle(25, 25, 320, 240), panelFigure.getBounds());
      // LANDSCAPE -> PORTRAIT
      context.click(deviceToolItem);
      assertEquals(new Rectangle(25, 25, 240, 320), panelFigure.getBounds());
    }
View Full Code Here

      ToolItem deviceToolItem = context.getToolItem("Flip orientation");
      // PORTRAIT -> LANDSCAPE
      context.click(deviceToolItem);
      assertEquals(new Rectangle(25, 25, 320, 240), panelFigure.getBounds());
      // LANDSCAPE -> PORTRAIT
      context.click(deviceToolItem);
      assertEquals(new Rectangle(25, 25, 240, 320), panelFigure.getBounds());
    }
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.