Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IMenuListener2


    // MS: Eclipse core plugins inject some dumb shit into
    // the File menu that there doesn't appear to be a
    // good way to remove.  So I'm going to do it
    // the hard way ...
    fileMenu.addMenuListener(new IMenuListener2() {
      public void menuAboutToHide(IMenuManager manager) {
      }

      public void menuAboutToShow(IMenuManager manager) {
        IContributionItem[] items = manager.getItems();
View Full Code Here


    private void fireAboutToHide(IMenuManager manager) {
        final Object[] listeners = this.listeners.getListeners();
        for (int i = 0; i < listeners.length; ++i) {
            final Object listener = listeners[i];
            if (listener instanceof IMenuListener2) {
                final IMenuListener2 listener2 = (IMenuListener2) listener;
                listener2.menuAboutToHide(manager);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.action.IMenuListener2

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.