Examples of RunnableEx


Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

            "}");
    refresh();
    MenuBarInfo bar = getJavaInfoByName("bar");
    final MenuItemInfo item = bar.getItems().get(0);
    //
    RunnableEx runnable = new RunnableEx() {
      public void run() throws Exception {
        IAction action = findChildAction(getContextMenu(item), "Open Command");
        assertNotNull(action);
        action.run();
      }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  }

  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

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        WidgetInfo button = panel.getChildrenWidgets().get(0);
        CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(button);
        constraints.setHorizontalAlignment(alignment);
      }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        WidgetInfo button = panel.getChildrenWidgets().get(0);
        CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(button);
        constraints.setHorizontalAlignment(ColumnInfo.Alignment.RIGHT);
      }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

   * Calls {@link CellConstraintsSupport#setHorizontalAlignment(ColumnInfo.Alignment)} in edit
   * operation.
   */
  private static void setHorizontalAlignment(final WidgetInfo widget,
      final ColumnInfo.Alignment alignment) {
    ExecutionUtils.run(widget, new RunnableEx() {
      @Override
      public void run() throws Exception {
        CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(widget);
        constraints.setHorizontalAlignment(alignment);
      }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

   * Calls {@link CellConstraintsSupport#setVerticalAlignment(ColumnInfo.Alignment)} in edit
   * operation.
   */
  private static void setVerticalAlignment(final WidgetInfo widget,
      final RowInfo.Alignment alignment) {
    ExecutionUtils.run(widget, new RunnableEx() {
      @Override
      public void run() throws Exception {
        CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(widget);
        constraints.setVerticalAlignment(alignment);
      }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        WidgetInfo button = panel.getChildrenWidgets().get(0);
        CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(button);
        constraints.setVerticalAlignment(alignment);
      }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        WidgetInfo button = panel.getChildrenWidgets().get(0);
        CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(button);
        constraints.setVerticalAlignment(RowInfo.Alignment.BOTTOM);
      }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    final WidgetInfo button = panel.getChildrenWidgets().get(0);
    //
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        // prepare alignment manager
        final IMenuManager alignmentManager;
        {
          MenuManager contextMenu = getDesignerMenuManager();
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

          ObjectInfo object,
          IMenuManager manager) throws Exception {
        if (object instanceof Cell && isParentOf(object)) {
          final Cell cell = (Cell) object;
          final Row row = (Row) cell.getParent();
          addAction(manager, "Insert cell", "insertCell", new RunnableEx() {
            public void run() throws Exception {
              createCell(row, cell);
            }
          });
          addAction(manager, "Append cell", "appendCell", new RunnableEx() {
            public void run() throws Exception {
              Cell nextCell = GenericsUtils.getNextOrNull(row.getCells(), cell);
              createCell(row, nextCell);
            }
          });
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.