Package org.eclipse.ui.operations

Examples of org.eclipse.ui.operations.OperationHistoryActionHandler$PartListener


    IUndoContext undoContext= getUndoContext();
    if (undoContext != null) {
      // Use actions provided by global undo/redo
     
      // Create the undo action
      OperationHistoryActionHandler undoAction= new UndoActionHandler(getEditorSite(), undoContext);
      PlatformUI.getWorkbench().getHelpSystem().setHelp(undoAction, IAbstractTextEditorHelpContextIds.UNDO_ACTION);
      undoAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.UNDO);
      registerUndoRedoAction(ITextEditorActionConstants.UNDO, undoAction);

      // Create the redo action.
      OperationHistoryActionHandler redoAction= new RedoActionHandler(getEditorSite(), undoContext);
      PlatformUI.getWorkbench().getHelpSystem().setHelp(redoAction, IAbstractTextEditorHelpContextIds.REDO_ACTION);
      redoAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.REDO);
      registerUndoRedoAction(ITextEditorActionConstants.REDO, redoAction);

      // Install operation approvers
      IOperationHistory history= OperationHistoryFactory.getOperationHistory();
View Full Code Here


    IUndoContext undoContext= getUndoContext();
    if (undoContext != null) {
      // Use actions provided by global undo/redo

      // Create the undo action
      OperationHistoryActionHandler undoAction= new UndoActionHandler(getEditorSite(), undoContext);
      PlatformUI.getWorkbench().getHelpSystem().setHelp(undoAction, IAbstractTextEditorHelpContextIds.UNDO_ACTION);
      undoAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_UNDO);
      registerUndoRedoAction(ITextEditorActionConstants.UNDO, undoAction);

      // Create the redo action.
      OperationHistoryActionHandler redoAction= new RedoActionHandler(getEditorSite(), undoContext);
      PlatformUI.getWorkbench().getHelpSystem().setHelp(redoAction, IAbstractTextEditorHelpContextIds.REDO_ACTION);
      redoAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_REDO);
      registerUndoRedoAction(ITextEditorActionConstants.REDO, redoAction);

      // Install operation approvers
      IOperationHistory history= OperationHistoryFactory.getOperationHistory();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.operations.OperationHistoryActionHandler$PartListener

Copyright © 2018 www.massapicom. 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.