Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Removing unwated action on the M_FILE menu
Removing unwated action on the M_FILE menu [message #443434] Mon, 30 January 2006 09:11 Go to next message
Eclipse UserFriend
I have an RCP apps that gets filled with some unwated actions
-- Convert Line Delimiters
-- Open File...

If I do not add the M_FILE menu then the console is logged with errors that
these are missing. I would like to remove these actions after startup so
that the the errors are not logged to the console (stdout).

I know i can rename the file menu to some other than
IWorkbenchActionConstants.M_FILE and this will cause the errors to be
reported to the console. Any other ideas?


protected void fillMenuBar(IMenuManager menuBar) {
MenuManager fileMenu =
new
MenuManager(VizualizerPlugin.getString("string.RCP_FILE"),IWorkbenchActionCo
nstants.M_FILE);//$NON-NLS-1$
menuBar.add(fileMenu);
....


}
Re: Removing unwated action on the M_FILE menu [message #444006 is a reply to message #443434] Wed, 08 February 2006 02:10 Go to previous message
Eclipse UserFriend
try this

MenuManager fileMenu = new MenuManager("&File",
IWorkbenchActionConstants.M_FILE);
menuBar.add(fileMenu);
fileMenu.add(new ActionContributionItem(exitAction));
Previous Topic:detect external edits
Next Topic:Customize a Outline Vieww
Goto Forum:
  


Current Time: Sat Nov 08 23:17:38 EST 2025

Powered by FUDForum. Page generated in 0.03328 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top