| Removing unwated action on the M_FILE menu [message #443434] |
Mon, 30 January 2006 09:11  |
Eclipse User |
|
|
|
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);
....
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03328 seconds