Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Programmatically activating a trim item
Programmatically activating a trim item [message #901690] Tue, 14 August 2012 03:45 Go to next message
Matthew Lay is currently offline Matthew Lay
Messages: 3
Registered: August 2012
Junior Member
Hi there. I have a trim item that I'd like to activate when a specific action event is fired but I'm having a lot of trouble trying to activate it.

I've looked around and saw that I could use the IMenuService interface to activate it but it just confused me.

I've included the plugin xml schema to help out (slightly modified)...

   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="toolbar:org.eclipse.ui.trim.command1">
         <toolbar
               id="name">
            <dynamic
                  class="name.popup"
                  id="name">
            </dynamic>
         </toolbar>
      </menuContribution>
   </extension>


Thanks in advance for any help you can provide.
Re: Programmatically activating a trim item [message #904266 is a reply to message #901690] Tue, 28 August 2012 02:08 Go to previous message
Matthew Lay is currently offline Matthew Lay
Messages: 3
Registered: August 2012
Junior Member
Found my answer... you can't. Found out we have an existing solution whereby when first registered we have our own class that keeps track of contribution items.
Previous Topic:another startup issue
Next Topic:Eclipse custom errors
Goto Forum:
  


Current Time: Wed Aug 27 21:24:19 EDT 2014

Powered by FUDForum. Page generated in 0.02077 seconds