Task Tree Diagram in GMF? [message #143441] |
Thu, 19 July 2007 11:44 |
Eclipse User |
|
|
|
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 |
Boris Blajer 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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04029 seconds