|
Re: emf 2.3.1 plugins [message #425504 is a reply to message #425500] |
Fri, 28 November 2008 11:57 |
Ed Merks Messages: 33148 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.
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02818 seconds