Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()


   
   
    sourceMenu.appendToGroup(SOURCE_MENU__ADDITIONS,
      registerEditorHandler(COMMAND_RunGoFix, RunGoFixOperation.handler));
   
    sourceMenu.appendToGroup(SOURCE_MENU__FORMAT,
      registerEditorHandler(COMMAND_RunGoFmt, RunGoFmtOperation.handler));
  }
 
}
View Full Code Here


    assert editMenu != null;
    if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
      editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
    }
    IAction validateAction = new ValidateAction(page);
    editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
  }
}
View Full Code Here

    assert editMenu != null;
    if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
      editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
    }
    IAction validateAction = new ValidateAction(page);
    editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
  }
}
View Full Code Here

    }

    public void init(IPageSite site) {
        super.init(site);
        IMenuManager menuManager = site.getActionBars().getMenuManager();
        menuManager.appendToGroup(IContextMenuConstants.GROUP_PROPERTIES, new OpenSearchPreferencesAction());
    }

    public void dispose() {
        fActionGroup.dispose();
        super.dispose();
View Full Code Here

      edit.add(new FormatAction());
    }
    // Add Export action
    IMenuManager file = menu.findMenuUsingPath("file");
    if (file != null) {
      file.appendToGroup("import.ext", new ExportHTMLAction());
    }   
  }

}
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.