Surya \’s Blog

… ever streaming tools and technologies….!!!

Archive for July 26th, 2007

EMF Howto’s

Posted by kathayat on July 26, 2007

Hints, tips and tricks concerning the use of the EMF API’s.

Initializing a ResourceSet

When using a ResourceSet object with the EMF-UML2 profile (as in various of the tutorials), you must build a map of URI mappings, as these are used internally by the UML2 metamodel. Each of these mappings maps a logical URI to a physical URI. Read the rest of this entry »

Posted in Eclipse EMF | 2 Comments »

Saving the EMF model to XML File

Posted by kathayat on July 26, 2007

 public void saveModel(EObject project)
{
 try{
  @SuppressWarnings(“unused”)
  URI fileURI = URI.createFileURI(“data/test1.xml”);
  Resource poResource = new XMLResourceFactoryImpl().createResource(fileURI);
  poResource.getContents().add(project);
  poResource.save(null);
 } catch(Exception ex)
 {
  ex.printStackTrace();
 }
}

Read the rest of this entry »

Posted in Eclipse EMF | 2 Comments »

Now 70K @RZ

Posted by kathayat on July 26, 2007

I got confused.

Posted in Uncategorized | Leave a Comment »