[Feature label] Edit pattern with references [message #473363] |
Wed, 05 March 2008 04:50  |
Eclipse User |
|
|
|
Hi,
In GMF, an edit pattern (like {0}:{1} ) can be used to set multiple
features of an object. Unfortunately, this is limited to attributes
while references can not be set this way.
Anyway I noticed that the GMF-based UML class diagram editor supports
setting class attributes through the edit pattern {name}:{type}. When I
looked in the according .gmfmap there was not specified an edit pattern.
So I wonder if there is some kind of workaround provided by GMF that the
UML tools developers used for the class diagram editor.
Regards, Stefan
|
|
|
Re: [Feature label] Edit pattern with references [message #473364 is a reply to message #473363] |
Wed, 05 March 2008 10:57  |
Eclipse User |
|
|
|
Hello Stefan,
Unfortunately GMF does _not_ support references parsing for Feature Labels
at the moment. We implemented such parsers ourselves. For example, manually-written
PropertyParser is used to parse attribute's labels. It is located in org.eclipse.uml2.diagram.common
plugin. It is returned for attribute labels by UMLParserProvider by using
'generated-NOT' method.
Best wishes,
Tatiana.
> Hi,
>
> In GMF, an edit pattern (like {0}:{1} ) can be used to set multiple
> features of an object. Unfortunately, this is limited to attributes
> while references can not be set this way.
> Anyway I noticed that the GMF-based UML class diagram editor supports
> setting class attributes through the edit pattern {name}:{type}. When
> I
> looked in the according .gmfmap there was not specified an edit
> pattern.
> So I wonder if there is some kind of workaround provided by GMF that
> the
> UML tools developers used for the class diagram editor.
> Regards, Stefan
>
|
|
|
Re: [Feature label] Edit pattern with references [message #618456 is a reply to message #473363] |
Wed, 05 March 2008 10:57  |
Eclipse User |
|
|
|
Hello Stefan,
Unfortunately GMF does _not_ support references parsing for Feature Labels
at the moment. We implemented such parsers ourselves. For example, manually-written
PropertyParser is used to parse attribute's labels. It is located in org.eclipse.uml2.diagram.common
plugin. It is returned for attribute labels by UMLParserProvider by using
'generated-NOT' method.
Best wishes,
Tatiana.
> Hi,
>
> In GMF, an edit pattern (like {0}:{1} ) can be used to set multiple
> features of an object. Unfortunately, this is limited to attributes
> while references can not be set this way.
> Anyway I noticed that the GMF-based UML class diagram editor supports
> setting class attributes through the edit pattern {name}:{type}. When
> I
> looked in the according .gmfmap there was not specified an edit
> pattern.
> So I wonder if there is some kind of workaround provided by GMF that
> the
> UML tools developers used for the class diagram editor.
> Regards, Stefan
>
|
|
|
Powered by
FUDForum. Page generated in 0.04417 seconds