Author: mareshkau
Date: 2010-09-03 08:19:50 -0400 (Fri, 03 Sep 2010)
New Revision: 24691
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2SourceValidator.java
Log:
https://jira.jboss.org/browse/JBIDE-6922, code adjustment
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2SourceValidator.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2SourceValidator.java 2010-09-03
12:12:11 UTC (rev 24690)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2SourceValidator.java 2010-09-03
12:19:50 UTC (rev 24691)
@@ -120,16 +120,16 @@
public LocalizedMessage(IJSF2ValidationComponent component,
IFile validateFile) {
this.component = component;
- setAttribute("problemType", JSF2XMLValidator.JSF2_PROBLEM_ID); //$NON-NLS-1$
//$NON-NLS-2$
+ setAttribute("problemType", JSF2XMLValidator.JSF2_PROBLEM_ID);
//$NON-NLS-1$
setAttribute(IJSF2ValidationComponent.JSF2_TYPE_KEY, component
.getType());
setAttribute(
"validateResourcePath", validateFile == null ? "" :
validateFile.getFullPath().toString()); //$NON-NLS-1$//$NON-NLS-2$
setAttribute(JSF2ResourceUtil.COMPONENT_RESOURCE_PATH_KEY,
component.getComponentResourceLocation());
- setAttribute("lineNumber", getLineNumber());
- setAttribute("severity", 1);
- setAttribute(ValidatorMessage.ValidationId,
"org.jboss.tools.jsf.jsf2.source");
+ setAttribute(IMarker.LINE_NUMBER, getLineNumber());
+ setAttribute(IMarker.SEVERITY, 1);
+ setAttribute(ValidatorMessage.ValidationId,
"org.jboss.tools.jsf.jsf2.source"); //$NON-NLS-1$
if (component instanceof JSF2URITempComponent) {
setAttribute(IJSF2ValidationComponent.JSF2_URI_NAME_KEY,
((JSF2URITempComponent) component).getURI());
@@ -149,7 +149,7 @@
setAttribute(JSF2ResourceUtil.JSF2_COMPONENT_NAME, ((JSF2CompositeTempComponent)
component).getElement().getLocalName());
}
}
- setAttribute("message",getText());
+ setAttribute(IMarker.MESSAGE,getText());
}
@Override