Examples of AssignedConstraintsSet


Examples of org.emftrace.metamodel.QUARCModel.Query.AssignedConstraintsSet

    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

Examples of org.emftrace.metamodel.QUARCModel.Query.AssignedConstraintsSet

   * <!-- end-user-doc -->
   * @generated NOT
   */
  @Override
  public String getText(Object object) {
    AssignedConstraintsSet assignedConstraintsSet = (AssignedConstraintsSet)object;
    if (assignedConstraintsSet.isChanged())
      return getString("_UI_AssignedConstraintsSet_type") + " (modified)";
    else
      return getString("_UI_AssignedConstraintsSet_type") + " "
  }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.AssignedConstraintsSet

    boolean obsolete = false;
    if (query != null){
     
      obsolete = obsolete || query.isChanged();
     
      AssignedConstraintsSet assignedConstraintsSet = query.getAssignedConstraintsSet();
      SelectedGoalsSet selectedGoalsSet = query.getSelectedGoalsSet();
      SelectedPrinciplesSet selectedPrinciplesSet = query.getSelectedPrinciplesSet();

     
      if (assignedConstraintsSet!= null)
        obsolete = obsolete || assignedConstraintsSet.isChanged();
     
      if (selectedGoalsSet!= null)
        obsolete = obsolete || selectedGoalsSet.isChanged();
     
      if (selectedPrinciplesSet!= null)
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.AssignedConstraintsSet

public class ClearAssignedConstraintSetCommandTest extends QUARCCoreTestCase{

  @Test
  public void test() {
 
    AssignedConstraintsSet assignedConstraintsSet = QueryFactory.eINSTANCE.createAssignedConstraintsSet();
    Constraint c1 = ConstraintsFactory.eINSTANCE.createConstraint();
    Constraint c2 = ConstraintsFactory.eINSTANCE.createConstraint();
    Constraint c3 = ConstraintsFactory.eINSTANCE.createConstraint();
   
    project.addModelElement(c1);
    project.addModelElement(c2);
    project.addModelElement(c3);

   
    assignedConstraintsSet.getAssignedConstraints().add(c1);
    assignedConstraintsSet.getAssignedConstraints().add(c2);
    assignedConstraintsSet.getAssignedConstraints().add(c3);
   
    project.addModelElement(assignedConstraintsSet);
    new ClearAssignedConstraintSetCommand(assignedConstraintsSet).runWithoutUnicaseCommand();
   
    assertEquals(0, assignedConstraintsSet.getAssignedConstraints().size());
    assertEquals(true, assignedConstraintsSet.isChanged());
   
  }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.AssignedConstraintsSet

    @Override
    public void setUp()  throws Exception
    {
        super.setUp();
       
        AssignedConstraintsSet assignedConstraintsSet = QueryFactory.eINSTANCE.createAssignedConstraintsSet();
       
    Constraint assignedConstraint = ConstraintsFactory.eINSTANCE.createConstraint();

   
    assignedConstraintsSet.getAssignedConstraints().add(assignedConstraint);
   
    property = ConstraintsFactory.eINSTANCE.createStringTechnicalProperty();
    property.setName("foo thing");

    assignedConstraint.setTechnicalProperty(property);
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.