Examples of RestoreAction


Examples of org.eclipse.ui.internal.editors.quickdiff.RestoreAction

    setAction(ITextEditorActionConstants.QUICKDIFF_REVERTSELECTION, action);

    action= new RevertBlockAction(this, false);
    setAction(ITextEditorActionConstants.QUICKDIFF_REVERTBLOCK, action);

    action= new RestoreAction(this, false);
    setAction(ITextEditorActionConstants.QUICKDIFF_REVERTDELETION, action);

    IAction action2= new CompositeRevertAction(this, new IAction[] {
                                           getAction(ITextEditorActionConstants.QUICKDIFF_REVERTSELECTION),
                                           getAction(ITextEditorActionConstants.QUICKDIFF_REVERTBLOCK),
View Full Code Here

Examples of org.eclipse.ui.internal.editors.quickdiff.RestoreAction

      if (isChangeInformationShowing()) {
        TextEditorAction revertLine= new RevertLineAction(this, true);
        TextEditorAction revertSelection= new RevertSelectionAction(this, true);
        TextEditorAction revertBlock= new RevertBlockAction(this, true);
        TextEditorAction revertDeletion= new RestoreAction(this, true);

        revertSelection.update();
        revertBlock.update();
        revertLine.update();
        revertDeletion.update();

        // only add block action if selection action is not enabled
        if (revertSelection.isEnabled())
          menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertSelection);
        else if (revertBlock.isEnabled())
          menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertBlock);
        if (revertLine.isEnabled())
          menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertLine);
        if (revertDeletion.isEnabled())
          menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertDeletion);
      }
    }
   
    // revision info
View Full Code Here

Examples of org.erlide.cover.ui.actions.RestoreAction

                .getImageDescriptor(ISharedImages.IMG_ETOOL_CLEAR));
        clear.setToolTipText("Clear coverage marking from editor");
    }

    private void makeRestoreAction() {
        restore = new RestoreAction(viewer);
        restore.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
                .getImageDescriptor(ISharedImages.IMG_OBJ_FOLDER));
        restore.setToolTipText("Restore previous results");
    }
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.