Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Labels show as <...>
Labels show as <...> [message #195403] Wed, 02 July 2008 15:02 Go to next message
Eclipse UserFriend
Originally posted by: frank.favanoo.com

All of the labels in my GMF diagram are being shown as '<...>', instead of
the actual named value from the model.

I'm not sure if it matters, but we created the editor so that the model
and diagram are contained in a single file.

Can anyone point me in the right direction in trying to debug this problem?

Also, this seems to be a version / conflict problem, as it works fine when
deployed into Europa, but not into a Rational version of Eclipse... is
there a specific release of EMF/GEF/GMF we need to get label support?

Thank you,
Re: Labels show as <...> [message #195450 is a reply to message #195403] Wed, 02 July 2008 18:11 Go to previous messageGo to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Frank wrote:
> All of the labels in my GMF diagram are being shown as '<...>', instead
> of the actual named value from the model.

I had that issue when I defined label figures in the graph model but
forgot some stuff in the mapping model. Don't remember exactly. Make
sure in the mapping model you add a label mapping as a child to the
corresponding node or connection and set all attributes correctly so the
label mapping actually points to the label figure in the graph model on
the one hand and to the domain model named value it represents on the
other hand.

Hauke
Re: Labels show as <...> [message #195457 is a reply to message #195450] Wed, 02 July 2008 18:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: frank.favanoo.com

I verified that everything is linked up, and also verified that it works
perfectly on a base Europa install. The same build shows as <...> in the
Rational tools (RSA 7.0.0.7 & RSM 7.0.5 - RSM has the same version of GMF
installed as Europa (2.0.1))

Any other ideas on how I can debug this problem? What class(es) are the
probable culprits?
Re: Labels show as <...> [message #195545 is a reply to message #195457] Thu, 03 July 2008 08:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Hi!
This text is defined in the text field of the corresponding label in the
gmfgraph. You can put anything you want.
Re: Labels show as <...> [message #195552 is a reply to message #195457] Thu, 03 July 2008 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

sorry i've just re-read the posts carrefully and I don't know if I propose
a solution for your problem.
Re: Labels show as <...> [message #196550 is a reply to message #195457] Thu, 10 July 2008 18:53 Go to previous message
Eclipse UserFriend
Originally posted by: frank.favanoo.com

I found the problem if anyone is interested...

The problem was with the Parser Providers. In the generated code, it
executes a search for the FIRST matching "provider" by priority (HIGHEST,
HIGH, MEDIUM, LOW, LOWEST). When running in the Rational runtime, an
object of this class was always being returned:

com.ibm.xtools.uml.core.internal.providers.parser.ParserProv ider

It seems like this class returns "true" to just about everything, even if
it has no clue about the target class and how to actually provide it's
label... it seems to be a "catch all".

So, I found that when it generates these "providers", it sets their
priority to "Lowest". All I had to do was change the generated
plug-in.xml file to bump up their priorities so that they match before the
troublesome IBM one does.
Previous Topic:File does not save the position of the diagram components after calling ArrangeAll
Next Topic:Exception "cannot modify a resource set without a write transaction"
Goto Forum:
  


Current Time: Mon May 25 06:24:21 GMT 2020

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

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

Back to the top