Show_View-Action allways disabled [message #461575] |
Fri, 12 January 2007 13:27 |
Eclipse User |
|
|
|
Originally posted by: florianwendland.freenet.de
Hello all,
in my app I use the following way to bind actions to the toolbar and
even the MenuBar:
preferencesAction = ActionFactory.PREFERENCES.create(window);
viewAction = ActionFactory.SHOW_VIEW_MENU.create(window);
register(viewAction);
register(preferencesAction);
....
MenuManager windowMenu = new MenuManager("&Window",
WorkbenchActionConstants.M_WINDOW);
windowMenu.add(getAction(ActionFactory.OPEN_PERSPECTIVE_DIAL OG.getId()));
windowMenu.add(preferencesAction);
windowMenu.add(viewAction);
....
This works fine for the Preferences Action, but the Show View Action is
allways disabled. What is worng in my code? I didn't understand!
Thx
Florian Wendland
|
|
|
Powered by
FUDForum. Page generated in 0.03567 seconds