Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumshow to fire a PropertyTester between MultiPageEditor pages?
https://www.eclipse.org/forums/index.php/mv/msg/156615/493682/#msg_493682
I am creating an RCP app and I am using the command framework to assign menu item actions to perform actions on open editors.
My problem:
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?
Thanks,
TC]]>TC 2009-10-27T14:44:54-00:00Re: how to fire a PropertyTester between MultiPageEditor pages?
https://www.eclipse.org/forums/index.php/mv/msg/156615/493742/#msg_493742
But you can use org.eclipse.ui.services.IEvaluationService.requestEvaluation (String) to cause your property tester to be re-evaluated when the page changes.
PW
]]>Paul Webster2009-10-27T18:44:07-00:00Re: how to fire a PropertyTester between MultiPageEditor pages?
https://www.eclipse.org/forums/index.php/mv/msg/156615/493750/#msg_493750