Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Delete command
Delete command [message #841423] Wed, 11 April 2012 09:28 Go to next message
El Shorty is currently offline El ShortyFriend
Messages: 37
Registered: March 2012
Member
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 09:39 Go to previous messageGo to next message
El Shorty is currently offline El ShortyFriend
Messages: 37
Registered: March 2012
Member
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 07:33 Go to previous messageGo to next message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

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 17:07 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 418
Registered: July 2009
Senior Member
+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 Nov 26 05:49:26 GMT 2014

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

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