Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Action Handler to move value binding to top/bottom of list
Action Handler to move value binding to top/bottom of list [message #1062823] Mon, 10 June 2013 18:08 Go to next message
Carlin Rogers is currently offline Carlin Rogers
Messages: 11
Registered: July 2009
Junior Member
Does Sapphire already have an action handler similar to MoveUpActionHandler/MoveDownActionHandler that would move a selected element in the property editor of a ModelElementList to the top/bottom of the list?

If not, is the best approach to implement a similar action handler that extends SelectionBasedActionHandler and then add the action to the property editor in the sdef file?

Thanks for the help.
Carlin
Re: Action Handler to move value binding to top/bottom of list [message #1063021 is a reply to message #1062823] Tue, 11 June 2013 15:52 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 937
Registered: July 2009
Senior Member
There isn't an existing action or action handler for this task. SelectionBasedActionHandler is private, so you will have to start with SapphirePropertyEditorActionHandler. Adding the new action handler in the sdef file is the correct approach if it is needed in a few places. If you need it in a lot of places based on some criteria, you'd contribute the action and action handler via sapphire-extension.xml.

[Updated on: Tue, 11 June 2013 15:53]

Report message to a moderator

Re: Action Handler to move value binding to top/bottom of list [message #1063033 is a reply to message #1063021] Tue, 11 June 2013 16:41 Go to previous message
Carlin Rogers is currently offline Carlin Rogers
Messages: 11
Registered: July 2009
Junior Member
OK, thanks. Appreciate the help.
Previous Topic:Index for list properties in sdef files
Next Topic:XmlElement CDATA section
Goto Forum:
  


Current Time: Tue Jul 29 19:09:27 EDT 2014

Powered by FUDForum. Page generated in 0.01641 seconds