Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » right click menu
right click menu [message #452874] Tue, 18 July 2006 12:24 Go to next message
Eclipse UserFriend
Originally posted by: vindhyalesh.huawei.com

hi,
i have to add a pop up menu for table as well as tree view,please tell
me how to imlement these. will these be implemented in the view itself. i
have tried to add this to view but its not working......please answer this
query

Best Regards....
Vindhyalesh
Re: right click menu [message #452878 is a reply to message #452874] Tue, 18 July 2006 12:41 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne BeatonFriend
Messages: 554
Registered: December 2017
Senior Member
vindhyalesh wrote:
> hi,
> i have to add a pop up menu for table as well as tree view,please tell
> me how to imlement these. will these be implemented in the view itself.
> i have tried to add this to view but its not working......please answer
> this query
>
> Best Regards....
> Vindhyalesh
>

Try this:

Create a new plug-in. On the "Templates" page in the wizard, choose to
create a "Plug-in with a view". On the final page, "View Features", make
sure that the "Add actions to the pop-up menu" is selected.

The generated view will have code that shows you how to do what you want.

Wayne
Re: right click menu [message #453116 is a reply to message #452874] Fri, 21 July 2006 23:53 Go to previous message
Antonel Ernest Pazargic is currently offline Antonel Ernest PazargicFriend
Messages: 69
Registered: July 2009
Member
1. Add popupMenus extension;
2. Add a new objectContribution;
3. objectClass =3D class from ContentProvider of your table or tree view=
=

(ex.: Person);
4. Create a new action for every action;
5. In createContents() method of the view, register the TreeView as =

selection provider (ex: =

this.getSite().setSelectionProvider(treeViewerPerson));

I hope these help, jtonic.

On Tue, 18 Jul 2006 15:24:34 +0300, vindhyalesh <vindhyalesh@huawei.com>=
=

wrote:

> hi,
> i have to add a pop up menu for table as well as tree view,please =

> tell me how to imlement these. will these be implemented in the view =

> itself. i have tried to add this to view but its not working......plea=
se =

> answer this query
>
> Best Regards....
> Vindhyalesh
>



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:Problem With Editors
Next Topic:RCP3.2: Perspective is not being read nor loaded
Goto Forum:
  


Current Time: Wed Oct 09 23:32:34 GMT 2024

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

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

Back to the top