Package q_impress.pmi.lib.project

Examples of q_impress.pmi.lib.project.ModelingProject.addResource()


    // create the new XMI resource and add it to model
    UmlResource newPmiRes = new UmlResource();
    newPmiRes.setName(umlResource.getName().substring(0, umlResource.getName().indexOf(".")));
    newPmiRes.setLocation(umlResource.getFullPath().toPortableString());
    try {
      project.addResource(newPmiRes);
    } catch (ResourceException e) {
      throw new ExecutionException("Unable to add XMI resource to model.", e);
    }
   
    // save the project
View Full Code Here


    UmlResource resource = new UmlResource();
    resource.setName("xmi.1");
    resource.setLocation("/home/goldivan/Documenti/poli/gallotti/Examples_Input/CaseStudyPolimi(ATOP).uml");
    resource.setConfigProperty("isXmiValid", "true");
    try {
      project.addResource(resource);
    } catch (ResourceException e) {
      e.printStackTrace();
      assertTrue(false);
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.