Package org.eclipse.core.commands.operations

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


          }
        }
        CopyOperation operation = new CopyOperation(selectedObjectsList);
        operation.addContext(EOModelUtils.getUndoContext(selectedObjects));
        IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
        operationHistory.execute(operation, null, null);
      }
    } catch (Throwable t) {
      ErrorUtils.openErrorDialog(Display.getDefault().getActiveShell(), t);
    }
  }
View Full Code Here


          }
        }

        pasteOperation.addContext(EOModelUtils.getUndoContext(selectedObject));
        IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
        operationHistory.execute(pasteOperation, null, null);
      }
    } catch (Throwable t) {
      ErrorUtils.openErrorDialog(Display.getDefault().getActiveShell(), t);
    }
  }
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.