Skip to main content


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 07:45 Go to next message
Matthew Lay is currently offline Matthew LayFriend
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 06:08 Go to previous message
Matthew Lay is currently offline Matthew LayFriend
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: Sat Apr 20 05:59:59 GMT 2024

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

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

Back to the top