Examples of UmlResource


Examples of q_impress.pmi.lib.project.UmlResource

        throw new ExecutionException("Unable to bundle XMI resource.", e);
      }
    }
   
    // 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);
    }
View Full Code Here

Examples of q_impress.pmi.lib.project.UmlResource

  public void testSave() {
    IModelingProject project = new ModelingProject();
    project.setName("test-project");
    project.setConfigProperty("dummy-prop", "myvalue");
   
    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

Examples of q_impress.pmi.lib.project.UmlResource

  @Override
  public boolean performFinish() {
    project = atopPage.getProject();
    projectFileName = atopPage.getProjectFileName();
   
    final UmlResource umlResource = atopPage.getUmlResource();
    final Activity activity = atopPage.getActivity();
    final MODEL_TYPE modelType = atopPage.getModelType();
    final String prismModelFileName = atopPage.getPrismModelFileName();
    final String prismPropsFileName = atopPage.getPrismPropsFileName();
    final String prismModelContainerName = atopPage.getPrismModelContainer();
View Full Code Here

Examples of q_impress.pmi.lib.project.UmlResource

    addResourceButton = toolkit.createButton(buttonComposite, "Add", SWT.PUSH);
    addResourceButton.setLayoutData(gd);
    addResourceButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        UmlResource newResource = new UmlResource();
        try {
          ((ModelingProjectEditorInput)getEditorInput()).getProject().addResource(newResource);
          newResource.setName("newResource");
          newResource.setLocation("");
         
          resourcesListSectionPart.markStale();
          resourcesListSectionPart.markDirty();
         
          List<IResource> selection = new ArrayList<IResource>();
View Full Code Here

Examples of q_impress.pmi.lib.project.UmlResource

  @Override
  public boolean performFinish() {
    project = jmtPage.getProject();
    projectFileName = jmtPage.getProjectFileName();
   
    final UmlResource umlResource = jmtPage.getUmlResource();
    final Set<Activity> activities = jmtPage.getActivities();
    final String jmtModelFileName = jmtPage.getJmtModelFileName();
    final String jmtModelContainerName = jmtPage.getJmtModelContainer();
    final String taskName = jmtPage.getTaskName();
   
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.