Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Show_View-Action allways disabled
Show_View-Action allways disabled [message #461575] Fri, 12 January 2007 13:27
Eclipse UserFriend
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
Previous Topic:How to execute a Job allways in background
Next Topic:Document save event in eclipse
Goto Forum:
  


Current Time: Sat Apr 26 21:32:44 EDT 2025

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

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

Back to the top