Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » adding dynamic properties to static objects
adding dynamic properties to static objects [message #420222] Mon, 23 June 2008 12:12 Go to next message
Chris is currently offline ChrisFriend
Messages: 97
Registered: July 2009
Member
Hi,

As mentioned above, my goal is to add dynamically generated EAttributes or
EReferences to existing meta objects which were generated statically from
an ecore file. However, it seems that this feature is not supported by EMF
(it results in an StackOverflow error in BasicEObjectImpl).
Is there maybe another possibility to implement a method where the user
can enrich arbitrary existing meta elements with custom EAttribute-like
"properties")

Regards,
Chris
Re: adding dynamic properties to static objects [message #420224 is a reply to message #420222] Mon, 23 June 2008 12:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030904030004080200030902
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Chris,

Comments below.

Chris wrote:
> Hi,
>
> As mentioned above, my goal is to add dynamically generated
> EAttributes or EReferences to existing meta objects which were
> generated statically from an ecore file.
That's not supported.
> However, it seems that this feature is not supported by EMF (it
> results in an StackOverflow error in BasicEObjectImpl).
Yes.
> Is there maybe another possibility to implement a method where the
> user can enrich arbitrary existing meta elements with custom
> EAttribute-like "properties")
If you set up the instance the way it would be set up if you defined a
model with XML Schema wildcards then you'd be able to use features from
documents root classes of other packages to augment the regular
features. The AnyType from the XMLTypePackage is an example of this and
this article will help:

Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>

>
> Regards,
> Chris
>


--------------030904030004080200030902
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Chris,<br>
<br>
Comments below.<br>
<br>
Chris wrote:
<blockquote
cite="mid:0802d60aafe288fc7cd7849c6a1bcf69$1@www.eclipse.org"
type="cite">Hi,
<br>
<br>
As mentioned above, my goal is to add dynamically generated EAttributes
or EReferences to existing meta objects which were generated statically
from an ecore file. </blockquote>
That's not supported.<br>
<blockquote
cite="mid:0802d60aafe288fc7cd7849c6a1bcf69$1@www.eclipse.org"
type="cite">However, it seems that this feature is not supported by
EMF (it results in an StackOverflow error in BasicEObjectImpl).
<br>
</blockquote>
Yes.<br>
<blockquote
cite="mid:0802d60aafe288fc7cd7849c6a1bcf69$1@www.eclipse.org"
type="cite">Is there maybe another possibility to implement a method
where the user can enrich arbitrary existing meta elements with custom
EAttribute-like "properties")
<br>
</blockquote>
If you set up the instance the way it would be set up if you defined a
model with XML Schema wildcards then you'd be able to use features from
documents root classes of other packages to augment the regular
features.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: adding dynamic properties to static objects [message #420226 is a reply to message #420224] Mon, 23 June 2008 13:04 Go to previous message
Chris is currently offline ChrisFriend
Messages: 97
Registered: July 2009
Member
Hi Ed,
thank you very much for your quick reply, I'll look into the article and
see if I can figure out how this can be implemented.
Regards, Chris
Previous Topic:Disable delete action in first element
Next Topic:accessing xml dom from generated model
Goto Forum:
  


Current Time: Thu Sep 26 21:14:29 GMT 2024

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

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

Back to the top