Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.TextActionHandler


  private TextActionHandler textActionHandler;
 
  @Override
  public void init(IActionBars actionBars) {
    super.init(actionBars);
    textActionHandler = new TextActionHandler(actionBars);
    textActionHandler.setDeleteAction(deleteAction);
    textActionHandler.setCutAction(cutAction);
    textActionHandler.setCopyAction(copyAction);
    textActionHandler.setPasteAction(pasteAction);
  }
View Full Code Here


  /**
   * Hooks text action handler.
   */
  private void hookTextActionHandler() {
    TextActionHandler textActionHandler = new TextActionHandler(getViewSite().getActionBars());
    textActionHandler.addText(this.summaryText);
    textActionHandler.addText(this.descriptionText);
    textActionHandler.addText(this.annotationText);
    textActionHandler.addText(this.revisionText);
    textActionHandler.addText(this.teamDescriptionText);
    textActionHandler.addText(this.reworkDescriptionText);
    getViewSite().getActionBars().setGlobalActionHandler("reviewSave", ReviewEditorViewAction.SAVE);
//    RetargetAction action = new RetargetAction();
//    getViewSite().getPage().getWorkbenchWindow().getPartService().
//    addPartListener(ReviewEditorViewAction.SAVE);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.actions.TextActionHandler

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.