Author: scabanovich
Date: 2011-11-29 17:53:25 -0500 (Tue, 29 Nov 2011)
New Revision: 36753
Added:
trunk/struts/plugins/org.jboss.tools.struts/.settings/
trunk/struts/plugins/org.jboss.tools.struts/.settings/org.eclipse.jdt.core.prefs
Modified:
trunk/struts/plugins/org.jboss.tools.struts/plugin.properties
trunk/struts/plugins/org.jboss.tools.struts/plugin.xml
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsCoreValidator.java
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Partially migrated validation for struts-config.xml.
Added: trunk/struts/plugins/org.jboss.tools.struts/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/struts/plugins/org.jboss.tools.struts/.settings/org.eclipse.jdt.core.prefs 2011-11-29
22:53:25 UTC (rev 36753)
@@ -0,0 +1,8 @@
+#Fri Sep 30 12:13:52 PDT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on:
trunk/struts/plugins/org.jboss.tools.struts/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.properties
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/plugin.properties 2011-11-29 22:45:34 UTC
(rev 36752)
+++ trunk/struts/plugins/org.jboss.tools.struts/plugin.properties 2011-11-29 22:53:25 UTC
(rev 36753)
@@ -1,4 +1,5 @@
providerName=JBoss by Red Hat
Bundle-Name.0 = JBoss Tools Struts
-StrutsCoreValidator=Struts Core Validator
\ No newline at end of file
+StrutsCoreValidator=Struts Core Validator
+StrutsProblemName=Struts Core Problem
\ No newline at end of file
Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2011-11-29 22:45:34 UTC (rev
36752)
+++ trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2011-11-29 22:53:25 UTC (rev
36753)
@@ -411,6 +411,12 @@
</contribution>
</extension>
+ <extension id="strutsproblem" name="%StrutsProblemName"
point="org.eclipse.core.resources.markers">
+ <super
type="org.jboss.tools.common.validation.JBTValidationProblem">
+ </super>
+ <persistent value="true">
+ </persistent>
+ </extension>
<extension point="org.eclipse.core.runtime.preferences">
<initializer
class="org.jboss.tools.struts.validation.StrutsPreferenceInitializer"/>
</extension>
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsCoreValidator.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsCoreValidator.java 2011-11-29
22:45:34 UTC (rev 36752)
+++
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsCoreValidator.java 2011-11-29
22:53:25 UTC (rev 36753)
@@ -42,9 +42,6 @@
import org.jboss.tools.jst.web.WebModelPlugin;
import org.jboss.tools.jst.web.model.helpers.WebAppHelper;
import org.jboss.tools.jst.web.validation.Check;
-import org.jboss.tools.jst.web.validation.CheckClass;
-import org.jboss.tools.jst.web.validation.CheckResource;
-import org.jboss.tools.jst.web.webapp.model.WebAppConstants;
import org.jboss.tools.struts.StrutsConstants;
import org.jboss.tools.struts.StrutsModelPlugin;
import org.jboss.tools.struts.StrutsProject;
@@ -54,7 +51,7 @@
*/
public class StrutsCoreValidator extends ValidationErrorManager implements IValidator,
StrutsConstants {
public static final String ID =
"org.jboss.tools.struts.validation.StrutsCoreValidator"; //$NON-NLS-1$
- public static final String PROBLEM_TYPE =
"org.jboss.tools.jst.web.webxmlproblem"; //$NON-NLS-1$
+ public static final String PROBLEM_TYPE =
"org.jboss.tools.struts.strutsproblem"; //$NON-NLS-1$
public static final String PREFERENCE_PAGE_ID =
"org.jboss.tools.struts.ui.StrutsValidatorPreferencePage"; //$NON-NLS-1$
public static String SHORT_ID = "verification"; //$NON-NLS-1$