|
Re: Reorder elements on diagram, tree or table [message #1722255 is a reply to message #1722181] |
Wed, 03 February 2016 15:37 |
|
Hi Denis,
Le 03/02/2016 10:29, Denis Nikiforov a écrit :
> Hi
>
> Is it possible to reorder elements on diagram, tree or table editors?
Sirius displays graphical elements from the order of their computation:
they are sorted by mapping and by the result of the semantic candidates
expression of their mapping.
So if you want to reorder some elements you will have to reorder the
corresponding semantic elements (from semantic tab of the properties
view, or tools or actions/menu).
Regards
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Reorder elements on diagram, tree or table [message #1722482 is a reply to message #1722308] |
Fri, 05 February 2016 08:58 |
|
Hi Denis,
Le 04/02/2016 06:34, Denis Nikiforov a écrit :
> In "Sample Ecore Model Editor" or "Sample Reflective Ecore Model Editor"
> one can reorder EClasses or EFeatures by drag'n'drop.
>
> Is it possible to implement a similar functionality in tree or table
> view? I can't find a drag'n'drop tool for these views.
In the TreeDescription you have the possibility to use a drop tool, you
will not have the insertion feedback (line) between element, but you
could use this to place the dropped element before/after the target of
the drop.
There is no current way to this reorder from the Viewpoint Specification
Model but this could be an interesting idea.
Regards
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Re: Reorder elements on diagram, tree or table [message #1725785 is a reply to message #1725099] |
Mon, 07 March 2016 15:50 |
|
Le 29/02/2016 19:18, Axel Guckelsberger a écrit :
> I am interested in reordering list elements in a diagram view.
> Any way to implement this from outside, maybe by an additional edit part
> policy?
It's not possible directly (through the VSM) to react to graphical
reordering of list elements on diagrams, but you could probably define
"Popup Menus" (context menu items) on the list elements corresponding to
the "Move Up" and "Move Down" operations. Not as convenient as a
Drag'n'drop from user's point of view, but depending on the use case it
could be sufficient.
Otherwise you can override the edit part implementation and/or edit
policies used by Sirius for selected items with the standard GMF
extension point. See for example at [1] how UML Designer does it. If
you're familiar enough with GEF/GMF you may be able to provide a custom
"DragDropPolicy" doing what you need (not tested though).
Regards,
Pierre-Charles
[1]
https://github.com/ObeoNetwork/UML-Designer/blob/master/plugins%2Forg.obeonetwork.dsl.uml2.design%2Fplugin.xml#L93
--
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.41395 seconds