Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Task Tree Diagram in GMF?
Task Tree Diagram in GMF? [message #143441] Thu, 19 July 2007 11:44 Go to next message
Eclipse UserFriend
Originally posted by: tobk.gmx.de

Hello,

is it somehow possible to create something like a task tree editor using
GMF?

The requirements are that the model file (in XML) is saved like this,

<diagram>
<task name="foo">
<task name="bar">
<task name="..."/>
</task>
<task name... />
</task>
</diagram>

meaning that the tasks can contain other tasks which they are composed from,
while in the diagram editor all the tasks are located _directly_ on the
canvas and not in some compartment of the parent task. The
containment-relatinship has to be visualized with a directed edge, instead.

Is there any way to configure this in GMF? Or can you tell me any clever
hack to get it done in GMF, like overwriting the EMF export to XML or
something? I also had the idea to use invisible compartments, but in this
case there'd still have to be connections from the child tasks to the
parent task's label (and not just somewhere to its invisible border), which
moreover may not be saved to the model file...

I would appreciate any ideas and recommendations.

Tobias
Re: Task Tree Diagram in GMF? [message #143540 is a reply to message #143441] Thu, 19 July 2007 17:51 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Tobias,

This use case is directly supported by GMF, the feature is called
phantom nodes. Basically, you need to specify TopNodeReference with no
containment/child features specified. Then, you should declare a
reference-based link and specify its EReference to be the containment
feature.

Best regards,
Boris


tobias wrote:
> Hello,
>
> is it somehow possible to create something like a task tree editor using
> GMF?
>
> The requirements are that the model file (in XML) is saved like this,
>
> <diagram>
> <task name="foo">
> <task name="bar">
> <task name="..."/>
> </task>
> <task name... />
> </task>
> </diagram>
>
> meaning that the tasks can contain other tasks which they are composed from,
> while in the diagram editor all the tasks are located _directly_ on the
> canvas and not in some compartment of the parent task. The
> containment-relatinship has to be visualized with a directed edge, instead.
>
> Is there any way to configure this in GMF? Or can you tell me any clever
> hack to get it done in GMF, like overwriting the EMF export to XML or
> something? I also had the idea to use invisible compartments, but in this
> case there'd still have to be connections from the child tasks to the
> parent task's label (and not just somewhere to its invisible border), which
> moreover may not be saved to the model file...
>
> I would appreciate any ideas and recommendations.
>
> Tobias
Re: Task Tree Diagram in GMF? [message #143620 is a reply to message #143540] Sat, 21 July 2007 09:41 Go to previous message
Eclipse UserFriend
Originally posted by: tobk.gmx.de

Thanks, Boris, this seems to work. Still there seem to be some problems if
the child tree nodes are of the same type as the root tree node. In this
case the children are inserted into the parent node, but the views
disappear. But I think it wouldn't be a problem to use a dedicated model
element for the root tree node.

Regards,
Tobias


Boris Blajer wrote:
> Hi Tobias,
>
> This use case is directly supported by GMF, the feature is called
> phantom nodes. Basically, you need to specify TopNodeReference with no
> containment/child features specified. Then, you should declare a
> reference-based link and specify its EReference to be the containment
> feature.
>
> Best regards,
> Boris
>
>
> tobias wrote:
>> Hello,
>>
>> is it somehow possible to create something like a task tree editor using
>> GMF?
>>
>> The requirements are that the model file (in XML) is saved like this,
>>
>> <diagram>
>> <task name="foo">
>> <task name="bar">
>> <task name="..."/>
>> </task>
>> <task name... />
>> </task>
>> </diagram>
>>
>> meaning that the tasks can contain other tasks which they are composed
>> from, while in the diagram editor all the tasks are located _directly_ on
>> the canvas and not in some compartment of the parent task. The
>> containment-relatinship has to be visualized with a directed edge,
>> instead.
>>
>> Is there any way to configure this in GMF? Or can you tell me any clever
>> hack to get it done in GMF, like overwriting the EMF export to XML or
>> something? I also had the idea to use invisible compartments, but in this
>> case there'd still have to be connections from the child tasks to the
>> parent task's label (and not just somewhere to its invisible border),
>> which moreover may not be saved to the model file...
>>
>> I would appreciate any ideas and recommendations.
>>
>> Tobias
Previous Topic:Modeling Assistant Provider - Suppressing existing connection handles
Next Topic:Create a complex figure on eclipse 3.3
Goto Forum:
  


Current Time: Tue Oct 08 15:25:32 GMT 2024

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

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

Back to the top