Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse RCP(Detecting the selected menu item)
Eclipse RCP [message #1047016] Mon, 22 April 2013 17:16 Go to next message
Shreyans Badjatya is currently offline Shreyans Badjatya
Messages: 1
Registered: April 2013
Junior Member
<handler
            class="handler.SerialCommunication"
            commandId="command.StartShortComm">
         <activeWhen>
            <with
                  variable="comport">
               <not>
                  <equals
                        value="None">
                  </equals></not>
            </with>
         </activeWhen>
      </handler>
<handler
            class="handler.SerialCommunication"
            commandId="command.StartFullComn">
         <activeWhen>
            <with
                  variable="comport">
               <not>
                  <equals
                        value="None">
                  </equals></not>
            </with>
         </activeWhen>
      </handler


I am very new to the RCP, I have two handlers for the same class, i want to detect in my class, which item was selected.
Re: Eclipse RCP [message #1048614 is a reply to message #1047016] Wed, 24 April 2013 18:25 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2307
Registered: July 2009
Senior Member
Are you sure you shouldn't instead have two subclasses, one to handle each command?

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Change color off button on click
Next Topic:Help with running JFrame
Goto Forum:
  


Current Time: Mon Oct 20 17:58:03 GMT 2014

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

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