Package q_impress.pmi.lib.jmt

Examples of q_impress.pmi.lib.jmt.JmtTranslationTask


    layout.verticalSpacing = 10;
    setLayout(layout);
   
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);

    JmtTranslationTask task = getTask();
   
    // type widget
    toolkit.createLabel(this, "Type :");
    Text text = toolkit.createText(this, task.getFriendlyName());
    text.setEditable(false);
    text.setLayoutData(gd);
   
    // name widget
    createNameField(this, toolkit);
   
    // uml resource widget
    createUmlResourceField(this, toolkit);
   
    // activities widget
    createActivitiesViewer(this, toolkit);
   
    // model filename
    toolkit.createLabel(this, "Prism Model file :");
    jmtModelFileText = toolkit.createText(this, task.getJmtFileName());
    jmtModelFileText.setLayoutData(gd);
    jmtModelFileText.setEditable(false);
  }
View Full Code Here


   
    // compute the jmt filename
    IFolder jmtContainer = ResourcesPlugin.getWorkspace().getRoot().getFolder(new Path(jmtModelContainerName));
    IFile jmtFile = jmtContainer.getFile(new Path(jmtModelFileName));
   
    JmtTranslationTask task;
    try {
      task = new JmtTranslationTask(project);
      task.setUmlResource(umlResource);
      task.setName(taskName);
      task.setJmtFileName(jmtFile.getFullPath().toString());
      Set<String> activityNames = new HashSet<String>();
      for (Activity act : activities) {
        activityNames.add(act.getQualifiedName());
      }
      task.setActivityNames(activityNames);
     
      // now add and save the project
      project.addResource(task);
      saveTargetProject(projectFileName, project, monitor);
    } catch (ResourceException e) {
View Full Code Here

TOP

Related Classes of q_impress.pmi.lib.jmt.JmtTranslationTask

Copyright © 2018 www.massapicom. 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.