Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hiding GMF elements(I want to hide gmf elements)
Hiding GMF elements [message #551099] Thu, 05 August 2010 08:43 Go to next message
Pablo Nieto is currently offline Pablo NietoFriend
Messages: 31
Registered: August 2010
Location: Cuenca, Spain
Hello, I,m making a gmf editor and I would like to hide and show, some labels in the graphical editor.

I want to hide labels when they are empty, that is to say, that label is equal to "". When label content is set, the label will be shown.

I´ve tried with setVisible() method but it did not work.

How can I do this?

Thanks, Pablo.

[Updated on: Thu, 05 August 2010 09:44]

Report message to a moderator

Re: Hiding GMF elements [message #553028 is a reply to message #551099] Mon, 16 August 2010 06:41 Go to previous messageGo to next message
govind Ra is currently offline govind RaFriend
Messages: 95
Registered: July 2009
Hi Pablo

R u talking abt hiding the labels (attributes) text label of domain elements.

Re: Hiding GMF elements [message #553070 is a reply to message #553028] Mon, 16 August 2010 10:18 Go to previous message
emil salageanu is currently offline emil salageanuFriend
Messages: 94
Registered: June 2010
Location: Nice, France

Identify the EditPart class corresponding to your label. Then take a look at the refreshVisuals method.

Previous Topic:How can we use shortcuts in an RCP application
Next Topic:How to create and excute a command manually
Goto Forum:

Current Time: Wed May 22 02:04:09 GMT 2024

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

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

Back to the top