How to convert GraphNodeWrapper to EObject [message #1840908] |
Wed, 28 April 2021 11:49  |
Eclipse User |
|
|
|
Hi
Given the following eol query:
Object res = queryEngine.query(indexer, "return Company.all;", null);
How can I convert the GraphNodeWrapper object into EObject. An example would be welcome.
Kind regards,
|
|
|
|
Re: How to convert GraphNodeWrapper to EObject [message #1840917 is a reply to message #1840915] |
Wed, 28 April 2021 15:01  |
Eclipse User |
|
|
|
thank you very much!
Your answer put me on track. Looking at the documentation and at the generated '.localhawmodel' helped to figure out how to setup the resource:
LocalHawkResourceImpl resource = new LocalHawkResourceImpl(URI.createURI("models"), indexer, false, patterns, patterns);
resource.basicSetResourceSet(rs, null);
resource.load(Collections.EMPTY_MAP);
|
|
|
Powered by
FUDForum. Page generated in 0.04833 seconds