Examples of TechnicalProperty


Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

    Pattern si2 = createPattern(gss, 2);
    Pattern si3 = createPattern(gss, 3);
    Pattern si4 = createPattern(gss, 4);
   
   
    TechnicalProperty property = ConstraintsFactory.eINSTANCE.createIntegerTechnicalProperty();
    Precondition precondition = ConstraintsFactory.eINSTANCE.createPrecondition();
   
    BaseCondition baseCondition =ConstraintsFactory.eINSTANCE.createBaseCondition();
    baseCondition.setTechnicalProperty(property);
    baseCondition.setValue("foo");
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

   */
  private LogicConditionResultItem evaluateBaseCondition(BaseCondition baseCondtion) {

    LogicalValues result = LogicalValues.UNDEFINED;
    Map<TechnicalProperty, Boolean> unassignedConstraints = new HashMap<TechnicalProperty, Boolean>();
    TechnicalProperty property = baseCondtion.getTechnicalProperty();
    if (property instanceof TechnicalPropertyCategory) {
       new Exception("assigned property must not be a TechnicalPropertyCategory ("+ baseCondtion+ ")").printStackTrace();
       result = LogicalValues.INVALID;
    } else {
    String constraintStringValue = getPropertyValue(property);
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

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

    TechnicalProperty property = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();

    gssQuery.getAssignedConstraintsSet().getAssignedConstraints().add(constraint1);

   
    new SetConstraintPropertyCommand(constraint1, property).runWithoutUnicaseCommand();
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

    final SelectPropertyWizardPage thisWizardPage = this;
    propertyTree.addSelectionListener(new SelectionListener() {

      @Override
      public void widgetSelected(SelectionEvent e) {
        TechnicalProperty selectedProperty = thisWizardPage
            .getSelectedProperty();

        if (selectedProperty != null)
          descriptionText
              .setItemToDisplay(filteredContentProviderResultItemMap
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

      public void run() {
        if (propertyTree.isDisposed())
          return; // return if dialog is closed already

        for (Entry<TechnicalProperty, TreeItem> entry : itemMap.entrySet()) {
          TechnicalProperty property = entry.getKey();

            if (!property.getEntries().isEmpty()) {  //  if (property instanceof TechnicalPropertyCategory) {
            TreeItem treeItem = entry.getValue();
            int size = calcSizeOfAllChildren(treeItem);
            treeItem.setText(0, treeItem.getText(0) + " (" + size
                + ")");
          }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

   */
  protected int calcSizeOfAllChildren(TreeItem treeItem) {
    int childrenCount = 0;

    for (TreeItem directChild : treeItem.getItems()) {
      TechnicalProperty subProperty = propertyMap.get(directChild);
      childrenCount += calcSizeOfAllChildren(directChild);
      if (subProperty instanceof TechnicalPropertyCategory) {
      //  childrenCount += calcSizeOfAllChildren(directChild);
      } else {
        childrenCount++;
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

   * @param constraint
   */
  protected void addConstraintToTable(Constraint constraint) {
    TableItem item = new TableItem(constraintsTable, SWT.NONE);

    TechnicalProperty property = constraint.getTechnicalProperty();
    String name = null;

    name = (property != null) ? property.getName() : "unknown property";
    if (name == null)
      name = "";
    String value = constraint.getValue();
    if (value == null)
      value = "";
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

   * @return the created FilteredContentProviderResultItem
   */
  public static FilteredContentProviderResultItem createFilteredContentProviderResultItem(EObject eObject, HashMap<String, HashMap<String, Integer>> hits){
   
   
    TechnicalProperty modelElement = (TechnicalProperty) eObject;
    String id = modelElement.getIdentifier();
   

    
        String label = LabelProvider.getLabel(modelElement);
        Image image = LabelProvider.getImage(modelElement);
        HashMap<String, String> content = new HashMap<String, String>();
    for (EAttribute attribute : modelElement.eClass().getEAllAttributes()) {
      String attributeName = attribute.getName();
      String attributeStringValue = "";
      if (eObject.eGet(attribute) == null ){
        attributeStringValue = "";
      } else if (attribute.isMany()){
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

public class NGramCheckEObjectConditionTest extends QUARCCoreTestCase{

  @Test
  public void testForName() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar");
   
    TechnicalProperty tp3 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp3.setName("abc");
   
    TechnicalProperty tp4 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp4.setName("test");
   
    TechnicalProperty tp5 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp5.setName("dummy");

    catalogue.getCatalogueProperties().add(tp3);
    catalogue.getCatalogueProperties().add(tp4);
    catalogue.getCatalogueProperties().add(tp5);
   
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

  }
 
  @Test
  public void testForBug() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar");
   
    catalogue.getCatalogueProperties().add(tp1);
    catalogue.getCatalogueProperties().add(tp2);   
   
    TechnicalProperty tp3 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp3.setName("abc");
   
    TechnicalProperty tp4 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp4.setName("test");
   
    TechnicalProperty tp5 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp5.setName("dummy");   

    catalogue.getCatalogueProperties().add(tp3);
    catalogue.getCatalogueProperties().add(tp4);
    catalogue.getCatalogueProperties().add(tp5);
   
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.