Author: scabanovich
Date: 2011-06-01 21:28:18 -0400 (Wed, 01 Jun 2011)
New Revision: 31766
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.properties
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamELValidationDelegate.java
Log:
JBIDE-9028
https://issues.jboss.org/browse/JBIDE-9028
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.properties 2011-06-02 01:26:16 UTC
(rev 31765)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.properties 2011-06-02 01:28:18 UTC
(rev 31766)
@@ -6,4 +6,6 @@
KBProblemName=Seam Problem
-KB_REQUIRED_FOR_SEAM=Seam
\ No newline at end of file
+KB_REQUIRED_FOR_SEAM=Seam
+SeamCoreValidator=Seam Core Validator
+SeamELValidationDelegate=Seam EL Validator
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2011-06-02 01:26:16 UTC (rev
31765)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2011-06-02 01:28:18 UTC (rev
31766)
@@ -518,16 +518,20 @@
</extension>
<extension
+ id="CoreValidator"
point="org.jboss.tools.jst.web.kb.validator">
<validator
class="org.jboss.tools.seam.internal.core.validation.SeamCoreValidator"
+ name="%SeamCoreValidator"
id="org.jboss.tools.seam.core.CoreValidator">
</validator>
</extension>
<extension
+ id="SeamELValidationDelegate"
point="org.jboss.tools.jst.web.kb.elValidationDelegate">
<delegate
+ name="%SeamELValidationDelegate"
class="org.jboss.tools.seam.internal.core.validation.SeamELValidationDelegate">
</delegate>
</extension>
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2011-06-02
01:26:16 UTC (rev 31765)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2011-06-02
01:28:18 UTC (rev 31766)
@@ -46,6 +46,7 @@
import org.jboss.tools.jst.web.kb.internal.validation.SimpleValidatingProjectTree;
import org.jboss.tools.jst.web.kb.internal.validation.ValidatingProjectSet;
import org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager;
+import org.jboss.tools.jst.web.kb.preferences.ELSeverityPreferences;
import org.jboss.tools.jst.web.kb.validation.IProjectValidationContext;
import org.jboss.tools.jst.web.kb.validation.IValidatingProjectSet;
import org.jboss.tools.jst.web.kb.validation.IValidatingProjectTree;
@@ -201,7 +202,7 @@
}
private boolean validateBuilderOrder(IProject project) throws CoreException {
- return ValidatorManager.validateBuilderOrder(project, getBuilderId(),
SeamPreferences.getInstance());
+ return ValidatorManager.validateBuilderOrder(project, getBuilderId(), getId(),
SeamPreferences.getInstance());
}
/*
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamELValidationDelegate.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamELValidationDelegate.java 2011-06-02
01:26:16 UTC (rev 31765)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamELValidationDelegate.java 2011-06-02
01:28:18 UTC (rev 31766)
@@ -12,6 +12,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
+import org.jboss.tools.jst.web.kb.internal.validation.ELValidator;
import org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager;
import org.jboss.tools.jst.web.kb.preferences.ELSeverityPreferences;
import org.jboss.tools.jst.web.kb.validation.IELValidationDelegate;
@@ -24,6 +25,7 @@
* @author Alexey Kazakov
*/
public class SeamELValidationDelegate implements IELValidationDelegate {
+ public static final String ID =
"org.jboss.tools.seam.core.SeamELValidationDelegate";
/* (non-Javadoc)
* @see
org.jboss.tools.jst.web.kb.validation.IELValidationDelegate#getValidatingProjects(org.eclipse.core.resources.IProject)
@@ -49,10 +51,15 @@
private boolean validateBuilderOrder(IProject project) throws CoreException {
//It's EL, hence EL preferences, not Seam preferences.
- return ValidatorManager.validateBuilderOrder(project, getBuilderId(),
ELSeverityPreferences.getInstance());
+ return ValidatorManager.validateBuilderOrder(project, getBuilderId(), getID(),
ELSeverityPreferences.getInstance()); //$NON-NLS-1$
}
public String getBuilderId() {
return SeamCoreBuilder.BUILDER_ID;
}
+
+ public String getID() {
+ return ID;
+ }
+
}
\ No newline at end of file