Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Adding an action to Synchronize View context menu(Adding an action to Synchronize View context menu)
Adding an action to Synchronize View context menu [message #659296] Fri, 11 March 2011 21:49 Go to next message
Li is currently offline LiFriend
Messages: 1
Registered: March 2011
Junior Member
Hi,

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.

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?

Any help would be much appreciated.
Thanks,

Li
Re: Adding an action to Synchronize View context menu [message #659855 is a reply to message #659296] Tue, 15 March 2011 19:05 Go to previous message
Eclipse UserFriend
Originally posted by: n.n.nnn

On Fri, 11 Mar 2011 16:49:56 -0500, Li wrote:

> Hi,
>
> 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
popup menus.

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
to (locationUri).

In the case of Subclipse (my favorite) it is:

org.tigris.subversion.subclipse.participant

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
locationUri.

Good luck.

Dilton
Previous Topic:How to import a project with a launch configuration ?
Next Topic:eclipse environment settings
Goto Forum:
  


Current Time: Fri Apr 19 18:08:09 GMT 2024

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

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

Back to the top