Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » [Feature label] Edit pattern with references
[Feature label] Edit pattern with references [message #473363] Wed, 05 March 2008 04:50 Go to next message
Stefan Bley is currently offline Stefan Bley
Messages: 23
Registered: July 2009
Junior Member
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 Go to previous message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
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 Go to previous message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
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
>
Previous Topic:[Feature label] Edit pattern with references
Next Topic:[Announce] UML2 Tools at EclipseCon 2008
Goto Forum:
  


Current Time: Wed Aug 27 19:18:11 EDT 2014

Powered by FUDForum. Page generated in 0.02308 seconds