Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Delete command
Delete command [message #841423] Wed, 11 April 2012 05:28 Go to next message
Eclipse UserFriend
Hey,

I have a toolbar on my view with a delete group button.
The view contains a treeviewer, with groups & persons. When you click on a group an editor opens with all the information it containts.

Now I want that when you click on the delete group button, that the group you last selected gets deleted. I have written my handler however I don't know how to get the last selected group into my handler, when I call the command it should know wich group to delete. How do I do this?
Re: Delete command [message #841431 is a reply to message #841423] Wed, 11 April 2012 05:39 Go to previous messageGo to next message
Eclipse UserFriend
I fixed it by calling the active editor and using the getter from the group
Re: Delete command [message #842325 is a reply to message #841431] Thu, 12 April 2012 03:33 Go to previous messageGo to next message
Eclipse UserFriend
I would make use of Selection Service (http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html or google for more)
Re: Re: Delete command [message #847803 is a reply to message #842325] Tue, 17 April 2012 13:07 Go to previous message
Eclipse UserFriend
+1


> I would make use of Selection Service
(http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html or
google for more)
Previous Topic:JasperWave 0.9.5: external style templates, JasperReports Server, JavaBean data source
Next Topic:Detaching/Attaching view causes TreeViewer white-out under non-Aero theme in Win7
Goto Forum:
  


Current Time: Wed Jul 23 19:06:29 EDT 2025

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

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

Back to the top