Skip to main content



      Home
Home » Modeling » EMF » UnsupportedOperationException in DocumentRootImpl
UnsupportedOperationException in DocumentRootImpl [message #657492] Wed, 02 March 2011 20:18 Go to next message
Eclipse UserFriend
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: Wed, 02 March 2011 20:24] by Moderator

Re: UnsupportedOperationException in DocumentRootImpl [message #657496 is a reply to message #657492] Wed, 02 March 2011 20:26 Go to previous message
Eclipse UserFriend
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!
Previous Topic:Option to omit using org.eclipse.emf.ecore.util.Switch
Next Topic:[TENEO] Support for Inheritance by Teneo
Goto Forum:
  


Current Time: Fri Jul 04 23:43:36 EDT 2025

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

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

Back to the top