Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » can not deactivate handler (only toolbar)
can not deactivate handler (only toolbar) [message #888390] Mon, 18 June 2012 04:23
yuta kobayashi is currently offline yuta kobayashiFriend
Messages: 3
Registered: June 2012
Junior Member
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

Previous Topic:The import ***** cannot be resolved
Next Topic:code assist not working for html and javascript
Goto Forum:
  


Current Time: Thu Mar 28 16:08:13 GMT 2024

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

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

Back to the top