JBoss Tools SVN: r36762 - in trunk/as/docs/reference/en-US: images/runtimes_servers and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-11-30 01:32:28 -0500 (Wed, 30 Nov 2011)
New Revision: 36762
Added:
trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_4.png
trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_5.png
trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_6.png
Modified:
trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_1.png
trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_3.png
trunk/as/docs/reference/en-US/runtimes_servers.xml
Log:
updated for JBIDE-6369
Modified: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_1.png
===================================================================
(Binary files differ)
Modified: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_3.png
===================================================================
(Binary files differ)
Added: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_4.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_5.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_6.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers-detecting_new_runtime_6.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/as/docs/reference/en-US/runtimes_servers.xml
===================================================================
--- trunk/as/docs/reference/en-US/runtimes_servers.xml 2011-11-30 01:27:40 UTC (rev 36761)
+++ trunk/as/docs/reference/en-US/runtimes_servers.xml 2011-11-30 06:32:28 UTC (rev 36762)
@@ -189,7 +189,7 @@
<section id="Detecting_an_existing_runtime">
<title>Detecting an existing runtime</title>
<para>
- JBoss Tools features the ability to search, detect and add existing JBoss server runtimes installed on your system. If you don't have an existing runtime <xref linkend="InstNewRuntime"/> will guide you through the creation process. To begin searching for your existing JBoss runtime select <menuchoice><guimenuitem>Window</guimenuitem>
+ JBoss Tools features the ability to search, detect and add existing JBoss server runtimes installed on your system. If you don't have an existing runtime you can download one through the <guibutton>Download</guibutton> option or <xref linkend="InstNewRuntime"/> will guide you through the creation process. To begin searching for your existing JBoss runtime select <menuchoice><guimenuitem>Window</guimenuitem>
<guimenuitem>Preferences</guimenuitem>
<guimenuitem>JBoss Tools</guimenuitem>
<guimenuitem>JBoss Runtimes</guimenuitem>
@@ -228,6 +228,47 @@
</imageobject>
</mediaobject>
</figure>
+ <para>
+ If you don't have a runtime already downloaded, you can download a free community application server through the <guibutton>Download</guibutton> button.
+ </para>
+ <important>
+ <para>
+ No official support is available for community application servers (this includes enterprise customers using JBoss Developer Studio).
+ </para>
+ </important>
+ <para>
+ Clicking on the <guibutton>Download</guibutton> button will display a new screen of available runtimes that can be downloaded. Highlight the server you wish to download and install, and click the <guibutton>OK</guibuton> button.
+ </para>
+ <figure>
+ <title>JBoss Runtime search results</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers-detecting_new_runtime_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>
+ A new dialog will appear asking you to specify an <guilabel>Install folder</guilabel> and <guilabel>Download folder</guilabel>; the option to <guilabel>Delete archive after installing</guilabel> is checked by default. Once you have specified the two paths above, click the <guibuton>OK</guibutton> button and the server will begin downloading.
+ </para>
+ <figure>
+ <title>JBoss Runtime search results</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers-detecting_new_runtime_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>
+ Once the server has been downloaded and installed, you will notice that the path to the new server now appears in the <guilabel>Paths</guilabel> section of the <guilabel>JBoss Tools Runtime Detection</guilabel> dialog.
+ </para>
+ <figure>
+ <title>JBoss Runtime search results</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers-detecting_new_runtime_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
<!-- No longer valid - cannot export or import runtime preferences
13 years, 1 month
JBoss Tools SVN: r36761 - trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-11-29 20:27:40 -0500 (Tue, 29 Nov 2011)
New Revision: 36761
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/JSFVerificationTest.java
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/JsfVerificationAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/WebVerificationTest.java
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Old verification validator test removed.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/JSFVerificationTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/JSFVerificationTest.java 2011-11-30 01:05:20 UTC (rev 36760)
+++ trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/JSFVerificationTest.java 2011-11-30 01:27:40 UTC (rev 36761)
@@ -36,7 +36,8 @@
project = provider.getProject();
}
- public void testPaths() {
+ //verification removed, see JBIDE-10190
+ public void _testPaths() {
IModelNature n = EclipseResourceUtil.getModelNature(project);
try {
XJob.waitForJob();
Modified: trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/JsfVerificationAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/JsfVerificationAllTests.java 2011-11-30 01:05:20 UTC (rev 36760)
+++ trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/JsfVerificationAllTests.java 2011-11-30 01:27:40 UTC (rev 36761)
@@ -20,8 +20,9 @@
TestSuite suite = new TestSuite("Test for default package");
//$JUnit-BEGIN$
- suite.addTestSuite(JSFVerificationTest.class);
- suite.addTestSuite(WebVerificationTest.class);
+ //verification removed, see JBIDE-10190
+// suite.addTestSuite(JSFVerificationTest.class);
+// suite.addTestSuite(WebVerificationTest.class);
//$JUnit-END$
return suite;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/WebVerificationTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/WebVerificationTest.java 2011-11-30 01:05:20 UTC (rev 36760)
+++ trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/WebVerificationTest.java 2011-11-30 01:27:40 UTC (rev 36761)
@@ -48,7 +48,8 @@
ResourcesUtils.setBuildAutomatically(saveAutoBuild);
}
- public void testWebVerification() throws CoreException {
+ //verification removed, see JBIDE-10190
+ public void _testWebVerification() throws CoreException {
IFile web = (IFile)project.getFile(new Path("WebContent/WEB-INF/web.xml"));
AbstractResourceMarkerTest.assertMarkerIsNotCreated(web, MARKER_TYPE, "error: Attribute location references to /error that does not exist in web content", 40);
13 years, 1 month
JBoss Tools SVN: r36760 - trunk/common/plugins/org.jboss.tools.common.verification.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-11-29 20:05:20 -0500 (Tue, 29 Nov 2011)
New Revision: 36760
Modified:
trunk/common/plugins/org.jboss.tools.common.verification/plugin.xml
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Old verification validator removed.
Modified: trunk/common/plugins/org.jboss.tools.common.verification/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.verification/plugin.xml 2011-11-30 00:55:08 UTC (rev 36759)
+++ trunk/common/plugins/org.jboss.tools.common.verification/plugin.xml 2011-11-30 01:05:20 UTC (rev 36760)
@@ -4,12 +4,12 @@
<extension-point id="rules" name="rules" schema="schema/rules.exsd"/>
- <extension point="org.jboss.tools.common.model.meta">
+ <!--extension point="org.jboss.tools.common.model.meta">
<meta path="meta/vrules.meta">
</meta>
<meta path="meta/vrules_eclipse_option.meta">
</meta>
- </extension>
+ </extension-->
<extension id="verifybuilder" name="Project Verifier" point="org.eclipse.core.resources.builders">
<builder>
@@ -58,7 +58,7 @@
</extension>
- <extension
+ <!--extension
point="org.eclipse.wst.validation.validator"
id="CommonVerification"
name="Project Verification">
@@ -66,10 +66,16 @@
<projectNature id="org.eclipse.jdt.core.javanature" />
<filter
objectClass="org.eclipse.core.resources.IFile"
+ nameFilter="*.java"/>
+ <filter
+ objectClass="org.eclipse.core.resources.IFile"
nameFilter="*.xml"/>
<filter
objectClass="org.eclipse.core.resources.IFile"
nameFilter="*.tld"/>
+ <filter
+ objectClass="org.eclipse.core.resources.IFile"
+ nameFilter="*.jar"/>
<markerId
markerIdValue="org.jboss.tools.jst.web.ui.strutsmarker">
</markerId>
@@ -82,6 +88,6 @@
fullBuild="true"
/>
</validator>
- </extension>
+ </extension-->
</plugin>
\ No newline at end of file
13 years, 1 month
JBoss Tools SVN: r36759 - trunk/common/plugins/org.jboss.tools.common.verification.ui.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-11-29 19:55:08 -0500 (Tue, 29 Nov 2011)
New Revision: 36759
Modified:
trunk/common/plugins/org.jboss.tools.common.verification.ui/plugin.xml
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Verification preference page removed.
Modified: trunk/common/plugins/org.jboss.tools.common.verification.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.verification.ui/plugin.xml 2011-11-30 00:53:51 UTC (rev 36758)
+++ trunk/common/plugins/org.jboss.tools.common.verification.ui/plugin.xml 2011-11-30 00:55:08 UTC (rev 36759)
@@ -2,11 +2,11 @@
<?eclipse version="3.0"?>
<plugin>
- <extension point="org.eclipse.ui.preferencePages">
+ <!--extension point="org.eclipse.ui.preferencePages">
<page category="org.jboss.tools.common.model.ui" class="org.jboss.tools.common.verification.ui.vrules.preferences.VerificationPreferencePage" id="org.jboss.tools.common.verification.ui"
name="%PreferencePage_Verification">
</page>
- </extension>
+ </extension-->
<extension point="org.jboss.tools.common.model.specialwizard">
<specialwizard class="org.jboss.tools.common.verification.ui.vrules.wizard.runtime.VerifyWizard" id="org.jboss.tools.common.verification.ui.vrules.wizard.runtime.VerifyWizard">
13 years, 1 month
JBoss Tools SVN: r36758 - trunk/common/tests/org.jboss.tools.common.verification.ui.test/src/org/jboss/tools/common/verification/ui/vrules/preferences/test.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-11-29 19:53:51 -0500 (Tue, 29 Nov 2011)
New Revision: 36758
Modified:
trunk/common/tests/org.jboss.tools.common.verification.ui.test/src/org/jboss/tools/common/verification/ui/vrules/preferences/test/VerificationPreferencePageTest.java
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Prevented failures because of removed verification framework.
Modified: trunk/common/tests/org.jboss.tools.common.verification.ui.test/src/org/jboss/tools/common/verification/ui/vrules/preferences/test/VerificationPreferencePageTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.verification.ui.test/src/org/jboss/tools/common/verification/ui/vrules/preferences/test/VerificationPreferencePageTest.java 2011-11-30 00:53:21 UTC (rev 36757)
+++ trunk/common/tests/org.jboss.tools.common.verification.ui.test/src/org/jboss/tools/common/verification/ui/vrules/preferences/test/VerificationPreferencePageTest.java 2011-11-30 00:53:51 UTC (rev 36758)
@@ -29,7 +29,8 @@
public static final String ID = "org.jboss.tools.common.verification.ui";
- public void testShowVerificationPreferencePage() {
+ //verification removed, see JBIDE-10190
+ public void _testShowVerificationPreferencePage() {
doDefaultTest(ID, VerificationPreferencePage.class);
13 years, 1 month
JBoss Tools SVN: r36757 - trunk/common/tests/org.jboss.tools.common.verification.test/src/org/jboss/tools/common/verification/test.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-11-29 19:53:21 -0500 (Tue, 29 Nov 2011)
New Revision: 36757
Modified:
trunk/common/tests/org.jboss.tools.common.verification.test/src/org/jboss/tools/common/verification/test/VerificationTest.java
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Prevented failures because of removed verification framework.
Modified: trunk/common/tests/org.jboss.tools.common.verification.test/src/org/jboss/tools/common/verification/test/VerificationTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.verification.test/src/org/jboss/tools/common/verification/test/VerificationTest.java 2011-11-30 00:52:00 UTC (rev 36756)
+++ trunk/common/tests/org.jboss.tools.common.verification.test/src/org/jboss/tools/common/verification/test/VerificationTest.java 2011-11-30 00:53:21 UTC (rev 36757)
@@ -27,7 +27,8 @@
protected void setUp() throws Exception {
}
- public void testVerificationModel() {
+ //verification removed, see JBIDE-10190
+ public void _testVerificationModel() {
XModel model = PreferenceModelUtilities.getPreferenceModel();
XModelObject vm = model.getByPath("Verification Manager");
assertTrue("Verification Manager model object is not found", vm != null);
13 years, 1 month
JBoss Tools SVN: r36756 - trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/config.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-11-29 19:52:00 -0500 (Tue, 29 Nov 2011)
New Revision: 36756
Modified:
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/config/ConfigSignificanceView.java
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Prevented failures because of removed verification framework.
Modified: trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/config/ConfigSignificanceView.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/config/ConfigSignificanceView.java 2011-11-30 00:39:29 UTC (rev 36755)
+++ trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/config/ConfigSignificanceView.java 2011-11-30 00:52:00 UTC (rev 36756)
@@ -34,16 +34,19 @@
}
public void loadDefaults() {
+ if(manager == null) return;
manager.setMinSignificance(0);
update();
}
public void update() {
+ if(manager == null) return;
int i = manager.getMinSignificance();
if(i >= 0 && i < values.length) combo.select(i);
}
public void commit() {
+ if(manager == null) return;
manager.setMinSignificance(getSignificance());
}
13 years, 1 month
JBoss Tools SVN: r36755 - in trunk/struts/plugins/org.jboss.tools.struts.ui: META-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-11-29 19:39:29 -0500 (Tue, 29 Nov 2011)
New Revision: 36755
Added:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigConfigurationBlock.java
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.java
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.properties
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigValidatorPreferencePage.java
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/META-INF/MANIFEST.MF
trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.properties
trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.xml
Log:
JBIDE-10190
https://issues.jboss.org/browse/JBIDE-10190
Migrated validation for struts-config.xml.
Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/META-INF/MANIFEST.MF 2011-11-30 00:39:08 UTC (rev 36754)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/META-INF/MANIFEST.MF 2011-11-30 00:39:29 UTC (rev 36755)
@@ -37,6 +37,7 @@
org.jboss.tools.struts.ui.editor
Require-Bundle: org.jboss.tools.common,
org.jboss.tools.common.gef,
+ org.jboss.tools.common.ui,
org.eclipse.ui.ide;bundle-version="3.7.0",
org.eclipse.jface.text;bundle-version="3.7.0",
org.eclipse.ui.workbench.texteditor;bundle-version="3.7.0",
Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.properties
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.properties 2011-11-30 00:39:08 UTC (rev 36754)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.properties 2011-11-30 00:39:29 UTC (rev 36755)
@@ -43,4 +43,5 @@
PreferencePage_Customization=Customization
PreferencePage_WebFlow=Struts Flow Diagram
PreferencePage_PluginInsets=Plug-in Insets
+PreferencePage_StrutsCore_Validator=Validator
Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.xml
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.xml 2011-11-30 00:39:08 UTC (rev 36754)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.xml 2011-11-30 00:39:29 UTC (rev 36755)
@@ -150,6 +150,12 @@
<page category="org.jboss.tools.common.xstudio.editors" class="org.jboss.tools.struts.ui.preferences.WebFlowTabbedPreferencesPage" id="org.jboss.tools.common.xstudio.editors.webflowdiagram"
name="%PreferencePage_WebFlow">
</page>
+ <page
+ category="org.jboss.tools.common.xstudio"
+ class="org.jboss.tools.struts.ui.preferences.StrutsConfigValidatorPreferencePage"
+ id="org.jboss.tools.struts.ui.StrutsValidatorPreferencePage"
+ name="%PreferencePage_StrutsCore_Validator">
+ </page>
</extension>
<!--extension point="org.eclipse.ui.perspectives">
<perspective class="org.jboss.tools.struts.ui.XStudioPerspectiveFactory" icon="$nl$/images/xstudio/perspective.gif" id="org.jboss.tools.common.model.ui.XStudioPerspective" name="%perspective.name">
Added: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigConfigurationBlock.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigConfigurationBlock.java (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigConfigurationBlock.java 2011-11-30 00:39:29 UTC (rev 36755)
@@ -0,0 +1,104 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.struts.ui.preferences;
+
+import java.util.ArrayList;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener;
+import org.eclipse.jface.dialogs.IDialogSettings;
+import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
+import org.jboss.tools.common.preferences.SeverityPreferences;
+import org.jboss.tools.common.ui.preferences.SeverityConfigurationBlock;
+import org.jboss.tools.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
+import org.jboss.tools.jst.web.ui.WebUiPlugin;
+import org.jboss.tools.jst.web.validation.WebXMLPreferences;
+import org.jboss.tools.struts.StrutsModelPlugin;
+import org.jboss.tools.struts.validation.StrutsPreferences;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class StrutsConfigConfigurationBlock extends SeverityConfigurationBlock {
+
+ private static final String SETTINGS_SECTION_NAME = "StrutsConfigConfigurationBlock"; //$NON-NLS-1$
+
+ private static SectionDescription SECTION_STRUTS_CONFIG = new SectionDescription(
+ StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_section_struts_config,
+ new String[][]{
+ {StrutsPreferences.INVALID_ACTION_NAME, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidActionName_label},
+ {StrutsPreferences.INVALID_ACTION_REFERENCE_ATTRIBUTE, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidActionReferenceAttribute_label},
+ {StrutsPreferences.INVALID_ACTION_TYPE, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidActionType_label},
+ {StrutsPreferences.INVALID_ACTION_FORWARD, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidActionForward_label},
+
+ {StrutsPreferences.INVALID_GLOBAL_FORWARD, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidGlobalForward_label},
+ {StrutsPreferences.INVALID_GLOBAL_EXCEPTION, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidGlobalException_label},
+
+ {StrutsPreferences.INVALID_CONTROLLER, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidController_label},
+ {StrutsPreferences.INVALID_MESSAGE_RESOURCES, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidMessageResources_label},
+ },
+ StrutsModelPlugin.PLUGIN_ID
+ );
+
+ private static SectionDescription SECTION_WEB_XML = new SectionDescription(
+ StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_section_web_xml,
+ new String[][]{
+ {StrutsPreferences.INVALID_INIT_PARAM, StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_pb_invalidInitParam_label},
+ },
+ StrutsModelPlugin.PLUGIN_ID
+ );
+
+ private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
+ SECTION_STRUTS_CONFIG,
+ SECTION_WEB_XML,
+ };
+
+ private static Key[] getKeys() {
+ ArrayList<Key> keys = new ArrayList<Key>();
+ for (SectionDescription s: ALL_SECTIONS) {
+ s.collectKeys(keys);
+ }
+ keys.add(MAX_NUMBER_OF_PROBLEMS_KEY);
+ return keys.toArray(new Key[0]);
+ }
+
+ private static final Key MAX_NUMBER_OF_PROBLEMS_KEY = getKey(StrutsModelPlugin.PLUGIN_ID, SeverityPreferences.MAX_NUMBER_OF_MARKERS_PREFERENCE_NAME);
+
+ @Override
+ protected Key getMaxNumberOfProblemsKey() {
+ return MAX_NUMBER_OF_PROBLEMS_KEY;
+ }
+
+ public StrutsConfigConfigurationBlock(IStatusChangeListener context,
+ IProject project, IWorkbenchPreferenceContainer container) {
+ super(context, project, getKeys(), container);
+ }
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return ALL_SECTIONS;
+ }
+
+ @Override
+ protected String getCommonDescription() {
+ return StrutsConfigPreferencesMessages.StrutsConfigConfigurationBlock_common_description;
+ }
+
+ @Override
+ protected IDialogSettings getDialogSettings() {
+ return WebUiPlugin.getDefault().getDialogSettings().getSection(SETTINGS_SECTION_NAME);
+ }
+
+ @Override
+ protected String getQualifier() {
+ return StrutsModelPlugin.PLUGIN_ID;
+ }
+}
\ No newline at end of file
Property changes on: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigConfigurationBlock.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.java (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.java 2011-11-30 00:39:29 UTC (rev 36755)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.struts.ui.preferences;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class StrutsConfigPreferencesMessages extends NLS {
+ private static final String BUNDLE_NAME = StrutsConfigPreferencesMessages.class.getName();
+
+ // Validator Preference page
+ public static String StrutsConfigConfigurationBlock_common_description;
+
+ // Section Struts Config
+ public static String StrutsConfigConfigurationBlock_section_struts_config;
+ public static String StrutsConfigConfigurationBlock_pb_invalidActionName_label;
+ public static String StrutsConfigConfigurationBlock_pb_invalidActionReferenceAttribute_label;
+ public static String StrutsConfigConfigurationBlock_pb_invalidActionType_label;
+ public static String StrutsConfigConfigurationBlock_pb_invalidActionForward_label;
+ public static String StrutsConfigConfigurationBlock_pb_invalidGlobalForward_label;
+ public static String StrutsConfigConfigurationBlock_pb_invalidGlobalException_label;
+ public static String StrutsConfigConfigurationBlock_pb_invalidController_label;
+ public static String StrutsConfigConfigurationBlock_pb_invalidMessageResources_label;
+
+ public static String StrutsConfigConfigurationBlock_section_web_xml;
+ public static String StrutsConfigConfigurationBlock_pb_invalidInitParam_label;
+
+
+ public static String PREFERENCE_PAGE_STRUTS_CORE_VALIDATOR;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, StrutsConfigPreferencesMessages.class);
+ }
+}
\ No newline at end of file
Property changes on: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.properties
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.properties (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.properties 2011-11-30 00:39:29 UTC (rev 36755)
@@ -0,0 +1,29 @@
+##################################################################################
+### Copyright (c) 2009 Red Hat, Inc.
+### Distributed under license by Red Hat, Inc. All rights reserved.
+### This program is made available under the terms of the
+### Eclipse Public License v1.0 which accompanies this distribution,
+### and is available at http://www.eclipse.org/legal/epl-v10.html
+###
+### Contributors:
+### Red Hat, Inc. - initial API and implementation
+##################################################################################
+
+StrutsConfigConfigurationBlock_common_description=Select the severity level for the following optional struts-config.xml Validator problems:
+
+##Section Action
+StrutsConfigConfigurationBlock_section_struts_config=Struts Config
+StrutsConfigConfigurationBlock_pb_invalidActionName_label=Invalid action name:
+StrutsConfigConfigurationBlock_pb_invalidActionReferenceAttribute_label=Invalid action reference attribute:
+StrutsConfigConfigurationBlock_pb_invalidActionType_label=Invalid action type:
+StrutsConfigConfigurationBlock_pb_invalidActionForward_label=Invalid action forward:
+StrutsConfigConfigurationBlock_pb_invalidGlobalForward_label=Invalid global forward:
+StrutsConfigConfigurationBlock_pb_invalidGlobalException_label=Invalid global exception:
+StrutsConfigConfigurationBlock_pb_invalidController_label=Invalid controller:
+StrutsConfigConfigurationBlock_pb_invalidMessageResources_label=Invalid message resources:
+
+##Section Web XML
+StrutsConfigConfigurationBlock_section_web_xml=Web XML
+StrutsConfigConfigurationBlock_pb_invalidInitParam_label=Invalid init param:
+
+PREFERENCE_PAGE_STRUTS_CORE_VALIDATOR=Struts Core Validator
Property changes on: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigPreferencesMessages.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigValidatorPreferencePage.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigValidatorPreferencePage.java (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigValidatorPreferencePage.java 2011-11-30 00:39:29 UTC (rev 36755)
@@ -0,0 +1,55 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.struts.ui.preferences;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
+import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
+import org.jboss.tools.struts.StrutsModelPlugin;
+import org.jboss.tools.struts.validation.StrutsCoreValidator;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class StrutsConfigValidatorPreferencePage extends SeverityPreferencePage {
+
+ public static final String PREF_ID = StrutsCoreValidator.PREFERENCE_PAGE_ID;
+ public static final String PROP_ID = "org.jboss.tools.struts.ui.propertyPages.StrutsValidatorPreferencePage"; //$NON-NLS-1$
+
+ public StrutsConfigValidatorPreferencePage() {
+ setPreferenceStore(StrutsModelPlugin.getDefault().getPreferenceStore());
+ setTitle(StrutsConfigPreferencesMessages.PREFERENCE_PAGE_STRUTS_CORE_VALIDATOR);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID()
+ */
+ @Override
+ protected String getPreferencePageID() {
+ return PREF_ID;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID()
+ */
+ @Override
+ protected String getPropertyPageID() {
+ return PROP_ID;
+ }
+
+ @Override
+ public void createControl(Composite parent) {
+ IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
+ fConfigurationBlock = new StrutsConfigConfigurationBlock(getNewStatusChangedListener(), getProject(), container);
+
+ super.createControl(parent);
+ }
+}
\ No newline at end of file
Property changes on: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigValidatorPreferencePage.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 1 month
JBoss Tools SVN: r36754 - trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validation.
by jbosstools-commits@lists.jboss.org
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)
13 years, 1 month
JBoss Tools SVN: r36753 - in trunk/struts/plugins/org.jboss.tools.struts: .settings and 1 other directories.
by jbosstools-commits@lists.jboss.org
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$
13 years, 1 month