Skip to main content



      Home
Home » Modeling » EMF » new attribute to a class on my model
new attribute to a class on my model [message #417976] Tue, 01 April 2008 05:17 Go to next message
Eclipse UserFriend
Hi,

I've just added a new attribute to a class and this attribute doesn't
appear in the editor when I'm editing a model file.

What can be the cause ?

(I watched the generated class and the attribute is correctly defined)

(I removed the read only directive on my folders before the code generation)

Thanks

Alexandre
Re: new attribute to a class on my model [message #417982 is a reply to message #417976] Tue, 01 April 2008 07:16 Go to previous messageGo to next message
Eclipse UserFriend
It's really strange the attribute is correctly generated in the emf class :

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDeleteCommand() {
return deleteCommand;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDeleteCommand(String newDeleteCommand) {
String oldDeleteCommand = deleteCommand;
deleteCommand = newDeleteCommand;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UIModelPackage.RENDERER_INFO__DELETE_COMMAND, oldDeleteCommand,
deleteCommand));
}

but it's never called

Cheers

Alexandre
Re: new attribute to a class on my model [message #417984 is a reply to message #417982] Tue, 01 April 2008 07:21 Go to previous messageGo to next message
Eclipse UserFriend
Alexandre,

Where are you looking for it in the generated editor? Are the
GenFeature properties for this feature set such that it will appear as a
property in the properties view?


Alexandre Jaquet wrote:
> It's really strange the attribute is correctly generated in the emf
> class :
>
> /**
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> public String getDeleteCommand() {
> return deleteCommand;
> }
>
> /**
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> public void setDeleteCommand(String newDeleteCommand) {
> String oldDeleteCommand = deleteCommand;
> deleteCommand = newDeleteCommand;
> if (eNotificationRequired())
> eNotify(new ENotificationImpl(this, Notification.SET,
> UIModelPackage.RENDERER_INFO__DELETE_COMMAND, oldDeleteCommand,
> deleteCommand));
> }
>
> but it's never called
>
> Cheers
>
> Alexandre
Re: new attribute to a class on my model [message #417986 is a reply to message #417984] Tue, 01 April 2008 07:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

In fact everything was fine during the generation but it's missed only
the feature definition of the attribute in the plugin.properties file.

Thanks
Re: new attribute to a class on my model [message #417987 is a reply to message #417986] Tue, 01 April 2008 07:42 Go to previous messageGo to next message
Eclipse UserFriend
Alexandre,

So do you still have a question? (Was that file read-only perhaps?)


Alexandre Jaquet wrote:
> Hi Ed,
>
> In fact everything was fine during the generation but it's missed only
> the feature definition of the attribute in the plugin.properties file.
>
> Thanks
Re: new attribute to a class on my model [message #417996 is a reply to message #417987] Tue, 01 April 2008 11:05 Go to previous message
Eclipse UserFriend
Ed,

No evertything is fine now it was as you said the read-only feature that
cause the problem.

Thanks

Alexandre
Previous Topic:Serialization with id attribute
Next Topic:XML schema import and EEnums
Goto Forum:
  


Current Time: Wed Nov 05 10:51:38 EST 2025

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

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

Back to the top