Ignore:
Timestamp:
09/24/11 09:11:42 (13 years ago)
Author:
wschamai
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modelicaml/org.openmodelica.modelicaml.helper/src/org/openmodelica/modelicaml/helper/impl/TestVerdictElementsGenerator.java

    r917 r990  
    5656import org.eclipse.uml2.uml.Type;
    5757import org.eclipse.uml2.uml.UMLPackage;
     58import org.openmodelica.modelicaml.common.constants.Constants;
    5859import org.openmodelica.modelicaml.common.services.StringUtls;
    5960import org.openmodelica.modelicaml.common.services.UmlServices;
     
    147148                    Type t = property.getType();
    148149                    if (t instanceof Class) {
    149                         Property violated = ((Class)t).getOwnedAttribute("violated", null);
    150                         Property evaluated = ((Class)t).getOwnedAttribute("evaluated", null);
     150                        Property violated = ((Class)t).getOwnedAttribute(Constants.propertyName_violated, null);
     151                        Property evaluated = ((Class)t).getOwnedAttribute(Constants.propertyName_evaluationStarted, null);
    151152                        if ( violated != null && evaluated != null) {
    152153                            Type violatedType = violated.getType();
     
    172173            for (Property property : reqInstances) {
    173174                //violatedExpression = violatedExpression + Utls.replaceSpecChar(property.getName()) + ".violated, ";
    174                 violatedExpression = violatedExpression + StringUtls.replaceSpecChar(property.getName()) + ".violated or ";
    175                 evaluatedExpression = evaluatedExpression + StringUtls.replaceSpecChar(property.getName()) + ".evaluated and ";
     175                violatedExpression = violatedExpression + StringUtls.replaceSpecChar(property.getName()) + "."+Constants.propertyName_violated+" or ";
     176                evaluatedExpression = evaluatedExpression + StringUtls.replaceSpecChar(property.getName()) + "."+Constants.propertyName_evaluationStarted+" and ";
    176177            }
    177178        }
     
    183184            }
    184185            Shell shell = new Shell();
    185             MessageDialog.openError(shell, "Error", "The following requirements do not have the mandotory attributes 'evaluated and 'violated' of type 'ModelicaBoolean'." +
     186            MessageDialog.openError(shell, "Error", "The following requirements do not have the mandotory attributes '"+Constants.propertyName_evaluationStarted+"' and '"+Constants.propertyName_violated+"' of type 'ModelicaBoolean'." +
    186187                invalidComponentNames +
    187188                "\n\nNo modification was made to the class '"+selectedClass.getName()+"'.");
Note: See TracChangeset for help on using the changeset viewer.