|Re: Adding an action to Synchronize View context menu [message #659855 is a reply to message #659296]
||Tue, 15 March 2011 19:05
Originally posted by: n.n.nnn|
On Fri, 11 Mar 2011 16:49:56 -0500, Li wrote:
> I'm developing a plug-in with an action that needs to be available in
> the Synchronize View. Currently, I have added it to the toolbar, but I
> want it to appear in the context menu when you right-click on an object
> in the view.
Notice when you open the Synchronize view and no projects are
associated with a Synchronize style plugin such as Subclipse; the
view comes up empty and Alt+Shift+F1 does not show any registered
You will need to have Subclispe (or Subversive or a CVS or GIT
plugin with a path to the repository and at least one project in
the workspace shared to the repo).
> I have done quite a bit of research about how to do this. I've tried the
> org.eclipse.ui.popupMenus and org.eclipse.ui.menus extensions, but
> nothing has worked.
> How can I accomplish this?
> Is org.eclipse.team.sync.views.SynchronizeView the right targetID? Is it
> even possible to modify the Sync view context menu?
No, once you have a synchronizing plugin, repo path and a project
shared with it; you will need to use the Eclipse Plugin Spy
(Alt+Shift+F1) to find the menu or menus that you want to contribute
In the case of Subclipse (my favorite) it is:
Yes, this works. Also check out the excellent "eclipse plug-ins" book
series by Eric Clayberg and Dan Rubel, this helped jog my memory on
Powered by FUDForum
. Page generated in 0.01564 seconds