Package org.eclipse.wb.internal.core.model.generic

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.command_MOVE()


    layout.refresh();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    assertTrue(flowContainer.validateComponent(button_2));
    assertTrue(flowContainer.validateReference(button_1));
    flowContainer.command_MOVE(button_2, button_1);
    assertEditor(
        "public class Test extends HLayout {",
        "  public Test() {",
        "    {",
        "      Button button_2 = new Button();",
View Full Code Here


    canvas.refresh();
    CanvasInfo button = getJavaInfoByName("button");
    LayoutInfo layout = getJavaInfoByName("vLayout");
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_MOVE(button, null);
    assertEditor(
        "public class Test extends Canvas {",
        "  public Test() {",
        "    {",
        "      VLayout vLayout = new VLayout();",
View Full Code Here

    canvas.refresh();
    CanvasInfo button = getJavaInfoByName("button");
    LayoutInfo layout = getJavaInfoByName("vLayout");
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_MOVE(button, null);
    assertEditor(
        "public class Test extends Canvas {",
        "  public Test() {",
        "    {",
        "      VLayout vLayout = new VLayout();",
View Full Code Here

    assertThat(items.size()).isEqualTo(2);
    MenuItemInfo item = items.get(0);
    MenuItemInfo separator = items.get(1);
    {
      FlowContainer flowContainer = new FlowContainerFactory(menu, false).get().get(0);
      flowContainer.command_MOVE(separator, item);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
View Full Code Here

  private static void doTreeItem_MOVE(TreeItemInfo parent, TreeItemInfo child, TreeItemInfo nextItem)
      throws Exception {
    FlowContainer flowContainer = getFlowContainer(parent);
    assertTrue(flowContainer.validateComponent(child));
    flowContainer.command_MOVE(child, nextItem);
  }

  private static FlowContainer getFlowContainer(TreeItemInfo parent) {
    List<FlowContainer> containers = new FlowContainerFactory(parent, true).get();
    assertThat(containers).hasSize(1);
View Full Code Here

    WidgetInfo panel_1 = frame.getChildrenWidgets().get(0);
    WidgetInfo panel_2 = frame.getChildrenWidgets().get(1);
    WidgetInfo button = panel_1.getChildren(WidgetInfo.class).get(0);
    // do ADD
    FlowContainer flowContainer_2 = getFlowContainer(panel_2);
    flowContainer_2.command_MOVE(button, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

    layout.refresh();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    assertTrue(flowContainer.validateComponent(button_2));
    assertTrue(flowContainer.validateReference(button_1));
    flowContainer.command_MOVE(button_2, button_1);
    assertEditor(
        "public class Test extends TileLayout {",
        "  public Test() {",
        "    setRect(0, 0, 350, 200);",
        "    {",
View Full Code Here

    layout.refresh();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    assertTrue(flowContainer.validateComponent(button_2));
    assertTrue(flowContainer.validateReference(button_1));
    flowContainer.command_MOVE(button_2, button_1);
    assertEditor(
        "public class Test extends VLayout {",
        "  public Test() {",
        "    {",
        "      Button button_2 = new Button();",
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.