Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » eAttribute default value
icon9.gif  eAttribute default value [message #523311] Thu, 25 March 2010 20:45 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: March 2010
Junior Member
In an instance of my model for each optional eAttribute of each eClass I need to distinguish whether it's set by the user or ecore is putting the default value for it.
It there any way to figure that out?

-Thanks
Re: eAttribute default value [message #523314 is a reply to message #523311] Thu, 25 March 2010 16:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
If you make that attribute have unsettable be true, then you'll be able
to find out with thegenerated isSetX method.


fefol_666@yahoo.com wrote:
> In an instance of my model for each optional eAttribute of each eClass
> I need to distinguish whether it's set by the user or ecore is putting
> the default value for it.
> It there any way to figure that out?
>
> -Thanks


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eAttribute default value [message #523375 is a reply to message #523311] Fri, 26 March 2010 08:42 Go to previous message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE.THIS.REMOVE...THIStueDOTnlREMOVE..THIS

Maybe this is of interest:
http://www.eclipse.org/forums/index.php?t=msg&th=160667

Best,
Dennis


fefol_666@yahoo.com wrote:
> In an instance of my model for each optional eAttribute of each eClass I
> need to distinguish whether it's set by the user or ecore is putting the
> default value for it.
> It there any way to figure that out?
>
> -Thanks
Previous Topic:How to find all references of an EObject in the workspace?
Next Topic:EMF Codegen: versioned required plugins
Goto Forum:
  


Current Time: Tue Apr 16 23:16:36 GMT 2024

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

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

Back to the top