Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » UnsupportedOperationException in DocumentRootImpl
UnsupportedOperationException in DocumentRootImpl [message #657492] Thu, 03 March 2011 01:18 Go to next message
tsurdilo  is currently offline tsurdilo Friend
Messages: 41
Registered: February 2011
Member
After generating model code from a .ecore DocumentRootImpl does not seem to get generated correctly...example method:

public FlowNode getFlowNode() {
// TODO: implement this method to return the 'Flow Node' containment reference
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}

and all of the other methods throw UnsupportedOperationException as well.

Any input or things I should look at to solve this problem are highly appreciated.

Thanks!

[Updated on: Thu, 03 March 2011 01:24]

Report message to a moderator

Re: UnsupportedOperationException in DocumentRootImpl [message #657496 is a reply to message #657492] Thu, 03 March 2011 01:26 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
I expect it to look something like this:

return
(Library)getMixed().get(LibraryPackage.Literals.DOCUMENT_ROO T__LIBRARY,
true);

Did you edit the DocumentRoot EClass to remove the mixed feature? Or
perhaps edit it's ExtendedMetaData annotations in some other way?


tsurdilo wrote:
> After generating model code from a .ecore DocumentRootImpl does not
> seem to get generated correctly...example method:
>
> public FlowNode getFlowNode() {
> // TODO: implement this method to return the 'Flow Node'
> containment reference
> // Ensure that you remove @generated or mark it @generated NOT
> throw new UnsupportedOperationException();
> }
>
> and all of the other methods throw UnsupportedOperationException as well.
> Any input or things I should look at to solve this problem are highly
> appreciated.
>
> Thanks!


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Option to omit using org.eclipse.emf.ecore.util.Switch
Next Topic:[TENEO] Support for Inheritance by Teneo
Goto Forum:
  


Current Time: Tue Apr 16 08:41:35 GMT 2024

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

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

Back to the top