Package org.eclipse.core.commands.operations

Examples of org.eclipse.core.commands.operations.IOperationHistory.execute()


            .getWidgetAdapter(container);
        operation.addContext(adapter.getUndoContext());
        IOperationHistory operationHistory = PlatformUI.getWorkbench()
            .getOperationSupport().getOperationHistory();
        try {
          operationHistory.execute(operation, null, null);
        } catch (ExecutionException e) {
          GroupLayoutPlugin.getLogger().error(e);
        }
      }
    }
View Full Code Here


    if (operation != null) {
      CompositeAdapter parent = (CompositeAdapter) WidgetAdapter.getWidgetAdapter(container);
      operation.addContext(parent.getUndoContext());
      IOperationHistory operationHist = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
      try {
        operationHist.execute(operation, null, null);
        return true;
      } catch (ExecutionException e) {
        GroupLayoutPlugin.getLogger().error(e);
        return false;
      }
View Full Code Here

      IUndoableOperation operation = new BorderSwitchOperation(target, factory);
      WidgetAdapter targetAdapter = WidgetAdapter.getWidgetAdapter(target);
      operation.addContext(targetAdapter.getUndoContext());
      IOperationHistory history = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
      try {
        history.execute(operation, null, null);
        setChecked(true);
      } catch (ExecutionException e) {
        BorderPlugin.getLogger().error(e);
      }
    }
View Full Code Here

      IUndoableOperation operation = new NullBorderSwitchOperation(target);
      WidgetAdapter targetAdapter = WidgetAdapter.getWidgetAdapter(target);
      operation.addContext(targetAdapter.getUndoContext());
      IOperationHistory history = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
      try {
        history.execute(operation, null, null);
        setChecked(true);
      } catch (ExecutionException e) {
        BorderPlugin.getLogger().error(e);
      }
    }
View Full Code Here

        operation = doSameHeight();
      if (operation != null) {
        operation.addContext(getUndoContext());
        IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
        try {
          operationHistory.execute(operation, null, null);
          return true;
        } catch (Exception e) {
          WidgetPlugin.getLogger().error(e);
          return false;
        }
View Full Code Here

  public void run() {
    IUndoableOperation operation = new ButtonGroupRenamingOperation(adapter, group);
    operation.addContext(adapter.getUndoContext());
    IOperationHistory history = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
    try {
      history.execute(operation, null, null);
    } catch (ExecutionException e) {
      WidgetPlugin.getLogger().error(e);
    }
  }
}
View Full Code Here

      IUndoableOperation operation = new NullLayoutOperation(adapter);
      operation.addContext(adapter.getUndoContext());
      IOperationHistory operationHistory = PlatformUI.getWorkbench()
          .getOperationSupport().getOperationHistory();
      try {
        operationHistory.execute(operation, null, null);
      } catch (ExecutionException e) {
        WidgetPlugin.getLogger().error(e);
      }
    }
  }
View Full Code Here

          jpaneladapter);
      operation.addContext(jpaneladapter.getUndoContext());
      IOperationHistory operationHistory = PlatformUI.getWorkbench()
          .getOperationSupport().getOperationHistory();
      try {
        operationHistory.execute(operation, null, null);
      } catch (ExecutionException e) {
        WidgetPlugin.getLogger().error(e);
      }
    }
  }
View Full Code Here

      IOperationHistory operationHistory = PlatformUI.getWorkbench()
          .getOperationSupport().getOperationHistory();
      IUndoableOperation operation = new JSplitPanePlacementOperation(container, child, placement);
      operation.addContext(parent.getUndoContext());
      try {
        operationHistory.execute(operation, null, null);
      } catch (ExecutionException e) {
        WidgetPlugin.getLogger().error(e);
      }
    }
  }
View Full Code Here

          .getOperationSupport().getOperationHistory();
      IUndoableOperation operation = new BorderLayoutPlacementOperation(
          container, child, placement);
      operation.addContext(parent.getUndoContext());
      try {
        operationHistory.execute(operation, null, null);
      } catch (ExecutionException e) {
        LayoutPlugin.getLogger().error(e);
      }
    }
  }
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.