[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmt] Re: [Epsilon] [Eugenia] Diagram Imp. Samples
|
Hi Sami,
No problem.
I think in the Mindmap example, Threads are implemented as compartments
on Topics. In turn, ThreadItems are implemented as compartments on Threads.
The layout option on the @gmf.compartment annotation defines the way in
which items can be created inside a compartment. In the Mindmap example,
ThreadItems are displayed using a list layout. Therefore, the annotation
@gmf.compartment(layout="list") should be used with EuGENia.
I think the following Emfatic source should produce what you want, when
the GMF diagram is generated with EuGENia:
@gmf
@namespace(uri="mindmap", prefix="mindmap")
package mindmap;
@gmf.diagram
class Mindmap {
val Topic[*] topics;
}
@gmf.node(label="name")
abstract class NamedElement {
attr String name;
}
class Topic extends NamedElement {
@gmf.compartment(layout="free")
val Thread[*] threads;
@gmf.link(target="relates to")
ref Topic[*] related;
}
@gmf.node(color="255,255,153")
class Thread extends NamedElement {
@gmf.compartment(layout="list")
val ThreadItem[*] threadItems;
}
@gmf.node(border.width="0")
class ThreadItem extends NamedElement {}
I hope this helps.
Many thanks,
Louis.
Sami wrote:
Thanks Louis,
I think my "snapped nodes" term is wrong. I mean to say "item". Nodes
and Items. Like http://wiki.eclipse.org/Image:Mindmap_rcp.png (thread item)
Louis Rose yazmış:
Hi Sami,
The EuGENia entry in the Epsilon Labs wiki gives details of supported
annotations. Here's the link:
http://epsilonlabs.wiki.sourceforge.net/EuGENia
Currently, EuGENia supports nodes, links and compartments. I don't
believe EuGENia provides annotations for generating snapped nodes yet.
Could you send us a sample GMF editor that includes a snapped node? We
could then investigate and see whether adding support for them is viable.
Many thanks,
Louis Rose.
Sami wrote:
Hi!
Filesystem example is clear about relations. But how can we implement
nodes, compartments, EnumType properties, snapped nodes like
attachment. Are there any other examples emf imp.?
Thanks.
------------------------------------------------------------------------