Author: scabanovich
Date: 2011-11-29 19:39:08 -0500 (Tue, 29 Nov 2011)
New Revision: 36754
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsPreferenceInitializer.java
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsPreferences.java
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Migrated validation for struts-config.xml.
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsPreferenceInitializer.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsPreferenceInitializer.java 2011-11-29
22:53:25 UTC (rev 36753)
+++
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsPreferenceInitializer.java 2011-11-30
00:39:08 UTC (rev 36754)
@@ -15,7 +15,7 @@
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.jboss.tools.common.preferences.SeverityPreferences;
-import org.jboss.tools.jst.web.WebModelPlugin;
+import org.jboss.tools.struts.StrutsModelPlugin;
/**
* @author Viacheslav Kabanovich
@@ -27,7 +27,7 @@
*/
@Override
public void initializeDefaultPreferences() {
- IEclipsePreferences defaultPreferences = ((IScopeContext) new
DefaultScope()).getNode(WebModelPlugin.PLUGIN_ID);
+ IEclipsePreferences defaultPreferences = ((IScopeContext) new
DefaultScope()).getNode(StrutsModelPlugin.PLUGIN_ID);
defaultPreferences.putBoolean(SeverityPreferences.ENABLE_BLOCK_PREFERENCE_NAME, true);
for (String name : StrutsPreferences.SEVERITY_OPTION_NAMES) {
defaultPreferences.put(name, SeverityPreferences.WARNING);
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsPreferences.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsPreferences.java 2011-11-29
22:53:25 UTC (rev 36753)
+++
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation/StrutsPreferences.java 2011-11-30
00:39:08 UTC (rev 36754)
@@ -15,7 +15,7 @@
import org.eclipse.core.resources.IProject;
import org.jboss.tools.common.preferences.SeverityPreferences;
-import org.jboss.tools.jst.web.WebModelPlugin;
+import org.jboss.tools.struts.StrutsModelPlugin;
/**
* @author Viacheslav Kabanovich
@@ -65,7 +65,7 @@
*/
@Override
protected String getPluginId() {
- return WebModelPlugin.PLUGIN_ID;
+ return StrutsModelPlugin.PLUGIN_ID;
}
/* (non-Javadoc)