Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Core] ItemDescriptors not displayed in the properties sheet page(ItemDescriptors not displayed in the properties sheet page)
[Core] ItemDescriptors not displayed in the properties sheet page [message #1720175] Thu, 14 January 2016 21:46 Go to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Hi,

I have a model that make use of transient and non-containment references. I realize that property descriptors do not seem to behave properly in such situation. I produce the following XCore model and instance to illustrate the problem (see the attachment).

@GenModel(prefix="EmfTransientIssue", modelName="EmfTransientIssue")
@GenModel(modelDirectory="/emf.transient_issue/src-generated")
@GenModel(editDirectory="/emf.transient_issue.edit/src-generated")
@GenModel(editorDirectory="/emf.transient_issue.editor/src-generated")

package emf.transient_issue
import org.eclipse.emf.ecore.EObject

class Root{
contains Data[0..*] dataSet /* These data CANNOT be referred. */
contains EObjectReference[0..1] eObjectReference
}
class Data{
String uid
}
class EObjectReference{
@GenModel(children="true")
/* To illustrate the problem, I overwrite the getInstance() to return an instance of DataContainer by default. */
refers transient EObject instance
}
class DataContainer{
refers Data[1] data /* Cannot assign a data contained in Root */
contains Data[0..*] dataSet /* These data can be referred. */
}

I created the following instance.
Root
-Data a1
-Data a2
-EObject Reference
--Data Container /* (The properties combo box cell editor only includes [b1,b2], [a1,a2] ae not offered. */
---Data b1
---Data b2


As indicated, when I edit the object Data Container, the cell editor does not offer [a1,a2]. Do you know how I can fix this?

Thanks Wink
Re: [Core] ItemDescriptors not displayed in the properties sheet page [message #1720214 is a reply to message #1720175] Fri, 15 January 2016 09:37 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Regent,

Sorry, my computer is crippled. I'm waiting for a new one to arrive
next week. Please open a bugzilla and I'll look into this when the new
computer is working.


On 14/01/2016 10:46 PM, Regent LArcheveque wrote:
> Hi,
>
> I have a model that make use of transient and non-containment references. I realize that property descriptors do not seem to behave properly in such situation. I produce the following XCore model and instance to illustrate the problem (see the attachment).
>
> @GenModel(prefix="EmfTransientIssue", modelName="EmfTransientIssue")
> @GenModel(modelDirectory="/emf.transient_issue/src-generated")
> @GenModel(editDirectory="/emf.transient_issue.edit/src-generated")
> @GenModel(editorDirectory="/emf.transient_issue.editor/src-generated")
>
> package emf.transient_issue
> import org.eclipse.emf.ecore.EObject
>
> class Root{
> contains Data[0..*] dataSet /* These data CANNOT be referred. */
> contains EObjectReference[0..1] eObjectReference
> }
> class Data{
> String uid
> }
> class EObjectReference{
> @GenModel(children="true")
> /* To illustrate the problem, I overwrite the getInstance() to return an instance of DataContainer by default. */
> refers transient EObject instance
> }
> class DataContainer{
> refers Data[1] data /* Cannot assign a data contained in Root */
> contains Data[0..*] dataSet /* These data can be referred. */
> }
>
> I created the following instance.
> Root
> -Data a1
> -Data a2
> -EObject Reference
> --Data Container /* (The properties combo box cell editor only includes [b1,b2], [a1,a2] ae not offered. */
> ---Data b1
> ---Data b2
>
> As indicated, when I edit the object Data Container, the cell editor does not offer [a1,a2]. Do you know how I can fix this?
>
> Thanks ;)
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EcoreUtil.copy problem with CDO
Next Topic:[CDO] resource.delete() fails for HibernateStore with Nullability-Exception
Goto Forum:
  


Current Time: Fri Apr 26 23:35:59 GMT 2024

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

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

Back to the top