UnsupportedOperationException in DocumentRootImpl [message #657492] |
Thu, 03 March 2011 01:18 |
tsurdilo 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 |
Ed Merks Messages: 33142 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02978 seconds