Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Set a label not visible in the creation of its Node
Set a label not visible in the creation of its Node [message #220567] Wed, 04 March 2009 18:24
Eclipse UserFriend
Originally posted by: rivera.lcc.uma.es

Hi all,

I have a class with a boolean attribute. Depending on the value of this
attribute (the default value is false), i want its diagram label to be
shown or not.

Thus, I have modified handleNotificationEvent of the Class' Edit Part
and it works well, but only when the value of this attribute is changed,
not at the creation or initialization of the diagram.

Since the default value of the attribute is false, I want the label not
to be shown in the initialization. I have tried to change CreateContents
in the node's figure creation, also in its Edit Part methods
createNodeFigure and createNodeFIgure, to set it to not visible, but it
makes no effect: it seems that after is set again to visible somewhere
else. ¿Does anyone know where can I set it to not visible in the
intialization of the diagram?

Thank you in advance,
Edu
Previous Topic:overlapping figures
Next Topic:Connection not showing up after a restart of eclipse on a diagram created by a wizard...
Goto Forum:
  


Current Time: Thu Apr 25 12:07:56 GMT 2024

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

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

Back to the top