Skip to main content



      Home
Home » Modeling » EMF » emf 2.3.1 plugins
emf 2.3.1 plugins [message #425500] Fri, 28 November 2008 04:18 Go to next message
Eclipse UserFriend
Hello,
I have been using emf 2.1 plugins for my standalone
applications.Now I wanted to switch to emf 2.3.
But in the new plugin some new features are added.
Like in XMLSaveImpl there is a method saveFeatures(EObject o)
under that there is a line
if (o == root)
{
writeTopAttributes(root);
}

In the writeTopAttributes definition its written
if (useEncodedAttributeStyle)
{
InternalEObject container =
((InternalEObject)top).eInternalContainer();

Now whenever it goes inside eInternalContainer it throws
UnSupportedOperationException.
So how to avoid this? What should be the value of
"useEncodedAttributeStyle "(true/false).

If I set it to false then as the flow proceedes
it encounters the same line in writeTopElements and there
again it throws UnSupportedOperationException.

Everytime its giving this exception for export operation.
Can you please help me how to avoid this problem.
Re: emf 2.3.1 plugins [message #425504 is a reply to message #425500] Fri, 28 November 2008 06:57 Go to previous message
Eclipse UserFriend
Gitanjali,

Comments below.


gitanjali punj wrote:
> Hello,
> I have been using emf 2.1 plugins for my standalone applications.
That's very old.
> Now I wanted to switch to emf 2.3.
There have been many significant changes, including the adoption of Java
5.0...
> But in the new plugin some new features are added.
> Like in XMLSaveImpl there is a method saveFeatures(EObject o)
> under that there is a line
> if (o == root)
> {
> writeTopAttributes(root);
> }
>
> In the writeTopAttributes definition its written
> if (useEncodedAttributeStyle)
> {
> InternalEObject container =
> ((InternalEObject)top).eInternalContainer();
>
> Now whenever it goes inside eInternalContainer it throws
> UnSupportedOperationException.
It sounds like you are running with a different version of the runtime
than you are using at development time.
> So how to avoid this? What should be the value of
> "useEncodedAttributeStyle "(true/false).
>
> If I set it to false then as the flow proceedes
> it encounters the same line in writeTopElements and there again it
> throws UnSupportedOperationException.
>
> Everytime its giving this exception for export operation.
> Can you please help me how to avoid this problem.
Can you say a little bit about your runtime environment. It sounds to
me like you'll developing with 2.3 but running with 2.1, which isn't
going to work. Specifically it sounds like your org.eclipse.ecore.xmi
plugin might well be at version 2.3 but the org.eclipse.emf.ecore plugin
is definitely not.
>
>
Previous Topic:[CDO]Model update
Next Topic:Underscore rules in generated values
Goto Forum:
  


Current Time: Fri Jul 04 17:03:01 EDT 2025

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

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

Back to the top