hi, I'm yuta.
I live in japan.
And, sorry to bad English.
I developing RCP product by eclipse3.7 and i have a question.
I can't deactivate handler(toolbar).
I wrote handler as follows.
----------------------------------------------
<handler
class="ExecuteHandler"
commandId="command">
<enabledWhen>
<with
variable="activeWorkbenchWindow">
<test
property="org.eclipse.ui.workbenchWindow.isPerspectiveOpen">
</test>
</with>
</enabledWhen>
</handler>
----------------------------------------------
and register to <extension point="org.eclipse.ui.menus"> as follows.
----------------------------------------------
<menuContribution
locationURI="menu:xxx">
<command
commandId="command"
style="push">
</command>
</menuContribution>
<menuContribution
locationURI="toolbar:yyy">
<command
commandId="command"
style="push">
</command>
</menuContribution>
----------------------------------------------
then, close all perspective.
menu handler deactivated, but toolbar handler not deactivated.
they use same command but why only toolbar not deactivated?
I want to deactivate Both.
pls help me.
[Updated on: Tue, 19 June 2012 00:44]
Report message to a moderator