Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hide an attribute
Hide an attribute [message #551548] Fri, 06 August 2010 18:54 Go to next message
Eclipse UserFriend
I have the following problem I need to resolve:

I have an EClass myclass with a few Eattributes attA, attB, attC

each time I change the attribute then save the information is written to an XML file.

<myClass>

attA="dd" attB="dd" attC="p"


</myClass>

So the GMF engine is doing the writing to the XML file using introspection

so it will check if attA isSet then it will put it inside the xml file otherwise no and same thing for other attributes

I have a situation where I need not to put attA even if it is set. in other words I need to override the behavior of GMF engine for this attribute.

Is there a way to do that?

Thanks

Re: Hide an attribute [message #551963 is a reply to message #551548] Tue, 10 August 2010 06:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

if I understand well, you can use Transient attribute. It will not be serialized.

Regards,
Re: Hide an attribute [message #552358 is a reply to message #551963] Wed, 11 August 2010 17:27 Go to previous message
Eclipse UserFriend
The problem is that I want it to display in the propertySheet of the item and not in the XML File.
Using transient just remove it from both if I close and reopen the editor.
Previous Topic:Shared Editing Domain, Drag and Drop from Explorer, multiple Diagrams
Next Topic:How to save both model and diagram in the same file from "File - Save as" menu
Goto Forum:
  


Current Time: Tue Jul 08 23:27:05 EDT 2025

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

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

Back to the top