Hi!
I want to load business objects (EMF format) into a new Graphiti diagram.
The thread "Create Diagram Model Programatically" has been of great help so far.
But my question is:
How do I get the business objects out of the domain model file?
My first naive attempt was:
ResourceSet resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.getResource(domainModelFileURI, true);
try {
resource.load(Collections.EMPTY_MAP);
} catch (IOException e) {
e.printStackTrace();
}
All I get is resource = 'null'.
Thanks,
Matt