Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » emf 2.3.1 plugins
emf 2.3.1 plugins [message #425500] Fri, 28 November 2008 09:18 Go to next message
gitanjali punj is currently offline gitanjali punjFriend
Messages: 59
Registered: July 2009
Member
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 11:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30897
Registered: July 2009
Senior Member
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: Mon Feb 24 05:47:01 GMT 2020

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

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

Back to the top