Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hide an attribute
Hide an attribute [message #551548] Fri, 06 August 2010 22:54 Go to next message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
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 10:13 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

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

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Hide an attribute [message #552358 is a reply to message #551963] Wed, 11 August 2010 21:27 Go to previous message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
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: Sat Apr 27 04:29:46 GMT 2024

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

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

Back to the top