Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Adding Team support
Adding Team support [message #87617] Wed, 02 July 2003 16:55 Go to next message
Eclipse UserFriend
Originally posted by: bharatkhatri2000.yahoo.com

Hi All,

I have created a view which shows all projects/files/folders in workspace.
Then I have a context menu on top of it for various operations on
resources.

I want to add the team support option to my menu, and I want it to look
and behave exactly the same way as it does for the java perspective's
context menu (i.e. the package explorer context menu). Is there a direct
way of doing this.

Thanks

Bharat
Re: Adding Team support [message #89166 is a reply to message #87617] Fri, 04 July 2003 13:26 Go to previous message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

If your view contains IResource objects, then if you register your
context menu with the platform, it will automatically fill in all
actions that apply for IResources (this includes the Team actions).
Your view createPartControl method should have something like this:

MenuManager menuMgr = new MenuManager("#PopupMenu");
getSite().registerContextMenu(menuMgr, tree);
--


bharat wrote:
> Hi All,
>
> I have created a view which shows all projects/files/folders in workspace.
> Then I have a context menu on top of it for various operations on
> resources.
>
> I want to add the team support option to my menu, and I want it to look
> and behave exactly the same way as it does for the java perspective's
> context menu (i.e. the package explorer context menu). Is there a direct
> way of doing this.
>
> Thanks
>
> Bharat
>
Previous Topic:Overriding save in custom editor
Next Topic:Enabling/disabling global actions?
Goto Forum:
  


Current Time: Sun May 11 22:25:19 EDT 2025

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

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

Back to the top