Examples of UndoRedoActionGroup


Examples of org.eclipse.ui.operations.UndoRedoActionGroup

    EOModelEditor modelEditor = (EOModelEditor) _activeEditor;
    IActionBars actionBars = getActionBars();
    _clipboardHandler.attach(actionBars, modelEditor);
    if (modelEditor != null) {
      UndoRedoActionGroup undoRedoGroup = new UndoRedoActionGroup(editor.getSite(), modelEditor.getUndoContext(), false);
      undoRedoGroup.fillActionBars(actionBars);
    }
  }
View Full Code Here

Examples of org.eclipse.ui.operations.UndoRedoActionGroup

    actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), new GlobalDeleteActionHandler());

    // For the normal resource undo/redo actions to be active, so that files
    // deleted via the "Delete" action in the staging view can be restored.
    IUndoContext workspaceContext = (IUndoContext) ResourcesPlugin.getWorkspace().getAdapter(IUndoContext.class);
    undoRedoActionGroup = new UndoRedoActionGroup(getViewSite(), workspaceContext, true);
    undoRedoActionGroup.fillActionBars(actionBars);

    actionBars.updateActionBars();
  }
View Full Code Here

Examples of org.eclipse.ui.operations.UndoRedoActionGroup

  public RefactorActionGroup(IViewPart part) {
    this(part.getSite(), part.getSite().getKeyBindingService());

    IUndoContext workspaceContext = (IUndoContext) ResourcesPlugin
        .getWorkspace().getAdapter(IUndoContext.class);
    fUndoRedoActionGroup = new UndoRedoActionGroup(part.getViewSite(),
        workspaceContext, true);
  }
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.