Package org.emftrace.quarc.core.commands.assignedconstraintsset

Examples of org.emftrace.quarc.core.commands.assignedconstraintsset.AddConstraintToAssignedConstraintsSetCommand


    Constraint constraint = ConstraintsFactory.eINSTANCE.createConstraint();
    constraint.setTechnicalProperty(selectPropertyWizardPage.getSelectedProperty());
    constraint.setOperator(BaseConditionOperators.EQUALS);
    constraint.setValue(selectPropertyWizardPage.getValue());

    new AddConstraintToAssignedConstraintsSetCommand(assignedConstraintedSet, constraint).runAsJob();
    return true;
  }
View Full Code Here


  @Test
  public void test() {
    Constraint constraint = ConstraintsFactory.eINSTANCE.createConstraint();

   
    new AddConstraintToAssignedConstraintsSetCommand(gssQuery.getAssignedConstraintsSet(), constraint).runWithoutUnicaseCommand();
   
    assertEquals(1, gssQuery.getAssignedConstraintsSet().getAssignedConstraints().size());
   
    assertEquals(true, gssQuery.getAssignedConstraintsSet().isChanged());
  }
View Full Code Here

TOP

Related Classes of org.emftrace.quarc.core.commands.assignedconstraintsset.AddConstraintToAssignedConstraintsSetCommand

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.