Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IMenuCreator


      }
    };

    newsGroup.setId(GROUP_ACTION);

    newsGroup.setMenuCreator(new IMenuCreator() {
      public void dispose() {}

      public Menu getMenu(Control parent) {
        Menu menu = new Menu(parent);
View Full Code Here


          .createFromImage(HelperMethods
              .createImage("icons/icon-reading-active.gif"))); //$NON-NLS-1$
      switchVariantAction.setText(StringConstants.NO_SOURCE_SELECTED);
      switchVariantAction
          .setToolTipText(StringConstants.NO_SOURCE_SELECTED);
      switchVariantAction.setMenuCreator(new IMenuCreator() {
        private Menu listMenu;

        @Override
        public void dispose() {
          if (listMenu != null)
View Full Code Here

    this.hideDisabled = hideDisabledActions;
    setText(text);
    setToolTipText(toolTip);
    setImageDescriptor(descriptor);
    // the secondary menu logic
    setMenuCreator(new IMenuCreator()
    {
      @Override
      public void dispose()
      {
      }
View Full Code Here

TOP

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

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.