Package org.eclipse.dltk.ui.actions

Examples of org.eclipse.dltk.ui.actions.SelectionDispatchAction


  private void registerActionsAsSelectionChangeListeners() {
    ISelectionProvider provider = fSite.getSelectionProvider();
    ISelection selection = provider.getSelection();
    for (int i = 0; i < fActions.length; i++) {
      SelectionDispatchAction action = fActions[i];
      action.update(selection);
      provider.addSelectionChangedListener(action);
    }
  }
View Full Code Here


   * (non-Javadoc) Method declared in ActionGroup
   */
  public void fillContextMenu(IMenuManager menu) {
    super.fillContextMenu(menu);
    for (int i = 0; i < fActions.length; i++) {
      SelectionDispatchAction action = fActions[i];
      menu.appendToGroup(ICommonMenuConstants.GROUP_EDIT, action);
    }
  }
View Full Code Here

    });
    ITextSelection textSelection = (ITextSelection) fEditor
        .getSelectionProvider().getSelection();

    for (Iterator iter = fEditorActions.iterator(); iter.hasNext();) {
      SelectionDispatchAction action = (SelectionDispatchAction) iter
          .next();
      action.update(textSelection);
    }
  }
View Full Code Here

  private void refactorMenuHidden(IMenuManager manager) {
    ITextSelection textSelection = (ITextSelection) fEditor
        .getSelectionProvider().getSelection();
    for (Iterator iter = fEditorActions.iterator(); iter.hasNext();) {
      SelectionDispatchAction action = (SelectionDispatchAction) iter
          .next();
      action.update(textSelection);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.ui.actions.SelectionDispatchAction

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.