|how to fire a PropertyTester between MultiPageEditor pages? [message #493682]
||Tue, 27 October 2009 14:44
Registered: October 2009
I am creating an RCP app and I am using the command framework to assign menu item actions to perform actions on open editors.
I am trying to disable a menu item based on what FormPage is currently active inside a MultiPageEditor.
Inside my MultiPageEditor, I have a FormPageA class and a FormPageB class as my possible types of pages.
I have a menu item in my file menu that I want to be disabled when FormPageA is active, but enabled on FormPageB.
So, I have created a property tester that I am successfully able to set the menu item to disabled when the editor opens and FormPageA is the default page. But when the user clicks on the tab to switch to FormPageB, it does not fire the property tester to enable the menu item again.
I expected this functionality since I am using an 'activeEditor (with)' expressions.definitions. What I am wondering is if there is a similar command to 'activeEditor' that will fire the property tester when the user switches between FormPageA and FormPageB?
if not, is there some other way I can do this?
Powered by FUDForum
. Page generated in 0.02404 seconds