Revision 9660
trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/WFSFilterPanel.java | ||
---|---|---|
412 | 412 |
public String getQuery(){ |
413 | 413 |
String writtenQuery = txtExpression.getText().trim(); |
414 | 414 |
|
415 |
// Validate expression |
|
416 |
if (!this.validateExpression(writtenQuery)) { |
|
417 |
getTxtExpression().setForeground(Color.red); |
|
418 |
return null; |
|
419 |
} |
|
420 |
else |
|
415 |
// // Validate expression
|
|
416 |
// if (!this.validateExpression(writtenQuery)) {
|
|
417 |
// getTxtExpression().setForeground(Color.red);
|
|
418 |
// return null;
|
|
419 |
// }
|
|
420 |
// else
|
|
421 | 421 |
// Codify expression (only if the validation has been successful) |
422 | 422 |
return this.codifyExpression(writtenQuery); // Ignores the spaces at beginning and end of the chain of characters |
423 | 423 |
} |
Also available in: Unified diff