Package org.eclipse.dltk.ui.actions

Examples of org.eclipse.dltk.ui.actions.SelectionDispatchAction.update()


  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);
    }
  }

  private void deregisterActionsAsSelectionChangeListeners() {
View Full Code Here


        .getSelectionProvider().getSelection();

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

  private void refactorMenuHidden(IMenuManager manager) {
    ITextSelection textSelection = (ITextSelection) fEditor
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

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.