Package org.emftrace.metamodel.QUARCModel.Packages

Examples of org.emftrace.metamodel.QUARCModel.Packages.Toolbox


   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final GSSQuery query = (GSSQuery) UiUtil.getSelectedEObject()
   
    Toolbox container = (Toolbox) query.eContainer().eContainer();
    AccessLayer accessLayer = new AccessLayer(false);
    ProjectSpace projectSpace = WorkspaceManager.getProjectSpace(query);
    accessLayer.registerProjectSpace(projectSpace);

    AssignedConstraintsSet assignedConstraintsSet = query.getAssignedConstraintsSet();
   
    new GSSQueryProcessor(query, accessLayer, container.getGssCatalogue(), assignedConstraintsSet, false).runAsJob();
    return null;
  }
View Full Code Here


    } else
  */ 
    if (modelElement instanceof SelectedGoalsSet){
      GSSQuery query =  (GSSQuery) modelElement.eContainer();
      GSSQueryContainment queryContainment  =  (GSSQueryContainment) query.eContainer();
      Toolbox toolbox  =  (Toolbox) queryContainment.eContainer();
      GSS gss  =  toolbox.getGssCatalogue();
      builder = new GoalSelectorGraphBuilder(managedFormComposite, SWT.NONE, getSite(), gss, (SelectedGoalsSet)modelElement, accessLayer);
    } else
   
    if (modelElement instanceof SelectedPrinciplesSet){
      GSSQuery query =  (GSSQuery) modelElement.eContainer();
      GSSQueryContainment queryContainment  =  (GSSQueryContainment) query.eContainer();
      Toolbox toolbox  =  (Toolbox) queryContainment.eContainer();
      GSS gss  =  toolbox.getGssCatalogue();
      builder = new PrincipleSelectorGraphBuilder(managedFormComposite, SWT.NONE, getSite(), gss,query, (SelectedPrinciplesSet)modelElement, accessLayer);

    }
    if (builder != null)
      builder.build();
View Full Code Here

    sourceTable.removeAll();
    constraintsTable.removeAll();
    sourceMap.clear();
    constraintMap.clear();
    descriptionText.setText("");
    Toolbox toolbox = (Toolbox) parentPackage.eContainer();
    if (fromTemplateButton.getSelection()) {
      for (PredefinedConstraintSet template : toolbox
          .getPredefinedContraintsSetCatalogue().getCatalogueItems()) {
        TableItem item = new TableItem(sourceTable, SWT.NONE);
        String name = template.getName();
        item.setText(name != null ? name : "");
        String description = template.getDescription();
        descriptionText.setText(description != null ? description : "");
        sourceMap.put(item, template);
      }
    } else if (fromQueryButton.getSelection()) {
      for (GSSQuery query : toolbox.getQueryContainment().getGssQueries()) {
        TableItem item = new TableItem(sourceTable, SWT.NONE);
        String name = query.getName();
        item.setText(name != null ? name : "");
        String description = query.getDescription();
        descriptionText.setText(description != null ? description : "");
View Full Code Here

   * @see org.eclipse.jface.wizard.Wizard#performFinish()
   */
  @Override
  public boolean performFinish() {

    Toolbox toolbox = ((Toolbox) parentPackage.eContainer());

    new CreatePredefinedConstraintSetCommand(
        toolbox.getPredefinedContraintsSetCatalogue(),
        saveConstraintsToPredefinedConstraintSetWizardPage
            .getSelectedConstraints(),
        saveConstraintsToPredefinedConstraintSetWizardPage
            .getPredefinedSetName(),
        saveConstraintsToPredefinedConstraintSetWizardPage
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.QUARCModel.Packages.Toolbox

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.