Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Right click In treeViewer
Right click In treeViewer [message #453124] Sat, 22 July 2006 12:13 Go to next message
Eclipse UserFriend
Originally posted by: vindhyalesh.huawei.com

hi,
i am writing an applicatio in which in a single view i am maintainig a
treeview and a table view. i am unable to implement the right click in the
treeviewer. i want to implement right click menu in the tree view so that
whenever i want to add a new entry like folder or file i can add this new
item to the tree and if i want to delete some folder/subfolder/file,i
could do. please help me out.
thanks in advance......


Best Regards,
Vindhyalesh
Re: Right click In treeViewer [message #453126 is a reply to message #453124] Sat, 22 July 2006 14:04 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Vindhyalesh wrote:
> hi,
> i am writing an applicatio in which in a single view i am maintainig a
> treeview and a table view. i am unable to implement the right click in
> the treeviewer. i want to implement right click menu in the tree view so
> that whenever i want to add a new entry like folder or file i can add
> this new item to the tree and if i want to delete some
> folder/subfolder/file,i could do. please help me out.
> thanks in advance......
>
>
> Best Regards,
> Vindhyalesh
>

If you are using JFace the code looks like the following:

--------------8<--------------
MenuManager mgr = new MenuManager();
mgr.add(fileNewAction);

viewer.getControl().setMenu(mgr.createContextMenu(viewer.get Control()));
--------------8<--------------

Tom
Previous Topic:RCP3.2: Perspective is not being read nor loaded
Next Topic:how to open external files through one rcp application like UltraEdit
Goto Forum:
  


Current Time: Thu Oct 10 17:56:15 GMT 2024

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

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

Back to the top