Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Load Domain Model (File) into Diagram
Load Domain Model (File) into Diagram [message #756895] Tue, 15 November 2011 08:19 Go to previous message
Matt H. is currently offline Matt H.
Messages: 6
Registered: August 2011
Junior Member
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:How to rotate a text
Next Topic:Store EMF model and Graphiti diagram seperately
Goto Forum:
  


Current Time: Thu May 23 08:58:57 EDT 2013

Powered by FUDForum. Page generated in 0.03187 seconds