|
|
|
Re: Problem when use generator in java code [message #1800968 is a reply to message #1800956] |
Thu, 10 January 2019 12:48 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
I don't know anything about your code, so I can at best guess. One guess would be that you aren't doing this bit of magic:resourceSet.getURIConverter().getURIMap().putAll(EcorePlugin.computePlatformURIMap(true)); on the resource set into which you've loaded your GenModel. The GenModelEditor does this when the editor loads the resource.
To debug this further, set an exception breakpoint (the little J! icon in the Breaks view) for NullPointerException. Then use the debugger's variables view to figure out the proxy URI of the genPackage whose getGenModel() is returning null. You'll need to figure out why that proxy doesn't resolve.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02919 seconds