Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Access editingDomain from ItemPropertyDescriptor
Access editingDomain from ItemPropertyDescriptor [message #666255] Tue, 19 April 2011 15:56 Go to next message
elefat is currently offline elefatFriend
Messages: 8
Registered: August 2010
Junior Member
I generated the model and edit packages from my ecore and now I am coding a ViewPart to show/edit information. The problem is this:
The type of an attribute is a collection of objects. I need not only to add existing objects (which is what propertyDesciptor implements) but also have two additional operations: create and delete when in editing that attribute's value. I extended PropertyDescriptor and make it open my own dialog box, which has two more buttons, new and delete. However,

((ItemPropertyDescriptor) itemPropertyDescriptor)
.getEditingDomain(object);

returns null and I cannot create the new objects or delete them. Any suggestions what to do or why editingDomain is null?
Thanks in advance
Re: Access editingDomain from ItemPropertyDescriptor [message #666259 is a reply to message #666255] Tue, 19 April 2011 16:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Probably the debugger can answer that question faster than me. Have you
tried that?


elefat@hotmail.com wrote:
> I generated the model and edit packages from my ecore and now I am
> coding a ViewPart to show/edit information. The problem is this: The
> type of an attribute is a collection of objects. I need not only to
> add existing objects (which is what propertyDesciptor implements) but
> also have two additional operations: create and delete when in editing
> that attribute's value. I extended PropertyDescriptor and make it open
> my own dialog box, which has two more buttons, new and delete. However,
> ((ItemPropertyDescriptor) itemPropertyDescriptor)
> .getEditingDomain(object);
>
> returns null and I cannot create the new objects or delete them. Any
> suggestions what to do or why editingDomain is null?
> Thanks in advance


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Problem using un-unique URIs as Identifier
Next Topic:[EMF] Link to update site missing?
Goto Forum:
  


Current Time: Thu Sep 26 01:14:27 GMT 2024

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

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

Back to the top