|Controlling enable/disable menu of eclipse4.x [message #757012]
||Wed, 16 November 2011 02:32
| Taichi Yamamura
Registered: November 2011
Please tell me about controlling plugin menu of eclipse4.x.
Now, I am checking the operation of migrating plugin created for 3.x to 4.x.
I thought that it would go smoothly without any problem, but there was a problem found on controlling menu. Specifically, I was checking on switching enable/disable menu caused by external factor such as selecting object, but for 4.x, controlling could not be done correctly only when not using menu. Here, I am using IWorkbenchWindowActionDelegate for controlling menu.
When I checked by debugging, I realized that the timing when IWorkbenchWindowActionDelegate performed creation is different for 3.x and 4.x as I described below:
3.x timing when loading plugin
4.x timing when executing menu (first time)
Is this caused by the specification difference between 3.x and 4.x?
If so, please tell me how to control activate/deactivate menu when not using the menu so that it would operate the same as 3.x.
[Updated on: Wed, 16 November 2011 04:08]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01902 seconds