Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problems with ActionEnablement
Problems with ActionEnablement [message #325043] Wed, 06 February 2008 12:44 Go to next message
Eclipse UserFriend
Originally posted by: a.heikhaus.cenit.de

Hi,

I created 2 plugins. Let´s say one testplugin and one extendedplugin.

In the testplugin I defined a view "testview" and configured also some viewactions for this view. My actions implements the interfaces IViewActionDelegate, IActionDelegate2. In method selectionChanged I implemented some cases for enablement that can not be catched by the standard eclipse enablement rules.

The extendedplugin also holds some actions implemented in the same way and that integrates into the toolbar of the view defined in testplugin.

Now my problem: All actions I defined in the testplugin behaves like I want. That means they are in the states I expected on a selection. The ones I defined in the extendedplugin behave inccorrect. Each one has to be pushed to get the right state. I know that is because I´m handling with proxy objects but I'm asking by myself why it is possible to get the right behavior for the "inner" actions but not for the actions defined outside the plugin. May be someone know how to solve this?!
Re: Problems with ActionEnablement [message #325076 is a reply to message #325043] Thu, 07 February 2008 11:32 Go to previous message
Eclipse UserFriend
That is the correct behaviour for the extendedplugin actions ... they
default to enabled until the user clicks on them, then they load the
real class and their enablement can be programmatically updated.

Your testplugin actions can be loaded because the testplugin was
activated when the view itself was created.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Previous Topic:Custom ordering views on a stack
Next Topic:Platform.addAuthorizationInfo
Goto Forum:
  


Current Time: Fri Sep 19 01:44:48 EDT 2025

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

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

Back to the top