|
Re: Dynamic tree [message #1715596 is a reply to message #1714812] |
Tue, 24 November 2015 15:08 |
|
Le 16/11/2015 23:26, Yariv Amar a écrit :
> hi
>
hello
> i have a list of items with names like java qualified name "a.b.c.d"
> i would like to present the items in a Tree view, similarly to java
> package-explorer (in eclipse).
> for example for the list of:
>
> a.b.c.x1
> a.b.c.x2
> d.dd.x3
> d.x4
>
> I want the Tree to look like:
>
> +a.b.c
> -x1
> -x2
> +d
> -x4
> +d.dd
> -x3
>
> how can i do it?
you can create a intermediary node mapping corresponding to your package.
As any tree element is bound to a semantic object, you can bound the
"package node" to the first class for a given package. Use a java
service [1] in the Semantic candidate expression.
Then, as the semantic element associated to the package node is a class,
you may have side effect. For example if you delete it.
>
> thanks!
Regards
Laurent
[1]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/general/Writing_Queries.html?cp=69_2_7_6#service_methods
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03220 seconds