Skip to content

Commit

Permalink
TEIIDDES-1341 changed UNKNOWN parameter direction validation to ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
blafond committed Jun 5, 2013
1 parent f92477c commit db87cc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ public void validate(EObject eObject, ValidationContext context) {
ProcedureParameter param = (ProcedureParameter) paramIter.next();
DirectionKind direction = param.getDirection();
if(direction == null) {
ValidationProblem problem = new ValidationProblemImpl(0, IStatus.WARNING, RelationalPlugin.Util.getString("ProcedureParametersRule.Parameter_{0}_does_not_have_a_direction._1", new Object[]{param.getName()})); //$NON-NLS-1$
ValidationProblem problem = new ValidationProblemImpl(0, IStatus.ERROR, RelationalPlugin.Util.getString("ProcedureParametersRule.Parameter_{0}_does_not_have_a_direction._1", new Object[]{param.getName()})); //$NON-NLS-1$
result.addProblem(problem);
}

// validate the direction of the parameters in the procedure
int directionKind = direction.getValue();
if(directionKind == DirectionKind.UNKNOWN) {
ValidationProblem problem = new ValidationProblemImpl(0, IStatus.WARNING, RelationalPlugin.Util.getString("ProcedureParametersRule.Parameter_{0}_has_an_UNKNOWN_direction._1", new Object[]{param.getName()})); //$NON-NLS-1$
ValidationProblem problem = new ValidationProblemImpl(0, IStatus.ERROR, RelationalPlugin.Util.getString("ProcedureParametersRule.Parameter_{0}_has_an_UNKNOWN_direction._1", new Object[]{param.getName()})); //$NON-NLS-1$
result.addProblem(problem);
} else if(directionKind == DirectionKind.RETURN) {
if(!foundReturnParam) {
Expand Down

0 comments on commit db87cc0

Please sign in to comment.