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

Examples of org.eclipse.wb.internal.core.model.clipboard.JavaInfoMemento.create()


          private static final long serialVersionUID = 0L;

          @Override
          public void execute(JavaInfo javaInfo) throws Exception {
            LayoutContainerInfo composite = (LayoutContainerInfo) javaInfo;
            LayoutInfo newLayout = (LayoutInfo) layoutMemento.create(javaInfo);
            composite.setLayout(newLayout);
            layoutMemento.apply();
          }
        });
      }
View Full Code Here


  private void addTreeFromMemento(final RootPanelInfo frame) throws Exception {
    final JavaInfoMemento memento =
        (JavaInfoMemento) JavaInfoMementoTransfer.convertBytesToObject(m_clipboardTreeBytes);
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        WidgetInfo newTree = (WidgetInfo) memento.create(frame);
        frame.command_CREATE2(newTree, null);
        memento.apply();
      }
    });
  }
View Full Code Here

              private static final long serialVersionUID = 0L;

              @Override
              public void execute(JavaInfo javaInfo) throws Exception {
                AbstractCellTableInfo cellTable = (AbstractCellTableInfo) javaInfo;
                ColumnInfo column = (ColumnInfo) columnMemento.create(cellTable);
                cellTable.addColumn(column);
                column.getHeaderProperty().setValue(headerValue);
              }
            });
          }
View Full Code Here

    {
      LayoutContainerInfo inner = (LayoutContainerInfo) container.getWidgets().get(0);
      memento = JavaInfoMemento.createMemento(inner);
    }
    // create new Widget
    WidgetInfo newWidget = (WidgetInfo) memento.create(container);
    container.getLayout().command_CREATE(newWidget, null);
    memento.apply();
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
View Full Code Here

    {
      LayoutContainerInfo inner = (LayoutContainerInfo) container.getWidgets().get(0);
      memento = JavaInfoMemento.createMemento(inner);
    }
    // create new Widget
    WidgetInfo newWidget = (WidgetInfo) memento.create(container);
    container.getLayout().command_CREATE(newWidget, null);
    memento.apply();
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
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.