Package q_impress.pmi.lib.atop

Examples of q_impress.pmi.lib.atop.AtopTranslationTask


    layout.verticalSpacing = 10;
    setLayout(layout);
   
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
   
    AtopTranslationTask 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);
   
    // model type widget
    toolkit.createLabel(this, "Model Type :");
    modelTypeCombo = new Combo(this, SWT.DROP_DOWN | SWT.READ_ONLY);
    modelTypeCombo.setItems(Constants.PRISM_MODEL_TYPES.toArray(new String[0]));
    modelTypeCombo.setText(task.getModelType().toString());
    modelTypeCombo.setLayoutData(gd);
    modelTypeCombo.setEnabled(false);

    // model filename
    toolkit.createLabel(this, "Prism Model file :");
    prismModelFileText = toolkit.createText(this, task.getPrismModelFileName());
    prismModelFileText.setLayoutData(gd);
    prismModelFileText.setEditable(false);
   
    // properties filename
    toolkit.createLabel(this, "Prism Properties file :");
    prismPropsFileText = toolkit.createText(this, task.getPrismPropertiesFileName());
    prismPropsFileText.setLayoutData(gd);
    prismPropsFileText.setEditable(false);
  }
View Full Code Here


    IFolder prismContainer = ResourcesPlugin.getWorkspace().getRoot().getFolder(new Path(prismModelContainerName));
    IFile prismModelFile = prismContainer.getFile(new Path(prismModelFileName));
    IFile prismPropsFile = prismContainer.getFile(new Path(prismPropsFileName));
   
   
    AtopTranslationTask task;
    try {
      task = new AtopTranslationTask(project);
      task.setUmlResource(umlResource);
      task.setSourceActivityName(activity.getQualifiedName());
      task.setModelType(modelType);
      task.setPrismModelFileName(prismModelFile.getFullPath().toString());
      task.setPrismPropertiesFileName(prismPropsFile.getFullPath().toString());
      task.setName(taskName);
     
      // 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.atop.AtopTranslationTask

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.