Skip to main content


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 BadjatyaFriend
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 DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Are you sure you shouldn't instead have two subclasses, one to handle each command?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Change color off button on click
Next Topic:Help with running JFrame
Goto Forum:
  


Current Time: Wed Apr 24 19:28:39 GMT 2024

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

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

Back to the top