Author: dazarov
Date: 2011-11-17 16:36:29 -0500 (Thu, 17 Nov 2011)
New Revision: 36422
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIValidatorPreferencePage.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationPreferencePage.java
trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/composite/CompositeComponentValidator.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorPreferencePage.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationErrorManager.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java
Log:
"Configure Problem Severity" quick fix for every JBDS Problem Markers which
opens Preferences Dialog filtered with current problem
https://issues.jboss.org/browse/JBIDE-9885
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2011-11-17
21:21:37 UTC (rev 36421)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2011-11-17
21:36:29 UTC (rev 36422)
@@ -109,6 +109,7 @@
public class CDICoreValidator extends CDIValidationErrorManager {
public static final String ID = "org.jboss.tools.cdi.core.CoreValidator";
//$NON-NLS-1$
public static final String PROBLEM_TYPE =
"org.jboss.tools.cdi.core.cdiproblem"; //$NON-NLS-1$
+ public static final String PREFERENCE_PAGE_ID =
"org.jboss.tools.cdi.ui.preferences.CDIValidatorPreferencePage"; //$NON-NLS-1$
ICDIProject rootCdiProject;
Map<IProject, CDIValidationContext> cdiContexts = new HashMap<IProject,
CDIValidationContext>();
@@ -2520,7 +2521,7 @@
@Override
protected String getPreferencePageId() {
- return "org.jboss.tools.cdi.ui.preferences.CDIValidatorPreferencePage";
+ return PREFERENCE_PAGE_ID;
}
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIValidatorPreferencePage.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIValidatorPreferencePage.java 2011-11-17
21:21:37 UTC (rev 36421)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIValidatorPreferencePage.java 2011-11-17
21:36:29 UTC (rev 36422)
@@ -13,6 +13,7 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
import org.jboss.tools.cdi.core.CDICorePlugin;
+import org.jboss.tools.cdi.internal.core.validation.CDICoreValidator;
import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
/**
@@ -20,7 +21,7 @@
*/
public class CDIValidatorPreferencePage extends SeverityPreferencePage {
- public static final String PREF_ID =
"org.jboss.tools.cdi.ui.preferences.CDIValidatorPreferencePage"; //$NON-NLS-1$
+ public static final String PREF_ID = CDICoreValidator.PREFERENCE_PAGE_ID;
public static final String PROP_ID =
"org.jboss.tools.cdi.ui.propertyPages.CDIValidatorPreferencePage";
//$NON-NLS-1$
public CDIValidatorPreferencePage() {
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2011-11-17 21:21:37 UTC
(rev 36421)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2011-11-17 21:36:29 UTC
(rev 36422)
@@ -39,6 +39,7 @@
org.jboss.tools.jsf.web.helpers.context,
org.jboss.tools.jsf.web.pattern,
org.jboss.tools.jsf.web.validation,
+ org.jboss.tools.jsf.web.validation.composite,
org.jboss.tools.jsf.web.validation.i18n,
org.jboss.tools.jsf.web.validation.jsf2,
org.jboss.tools.jsf.web.validation.jsf2.action,
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/composite/CompositeComponentValidator.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/composite/CompositeComponentValidator.java 2011-11-17
21:21:37 UTC (rev 36421)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/composite/CompositeComponentValidator.java 2011-11-17
21:36:29 UTC (rev 36422)
@@ -66,6 +66,7 @@
public static final String ID =
"org.jboss.tools.jsf.CompositeComponentValidator"; //$NON-NLS-1$
public static final String PROBLEM_TYPE =
"org.jboss.tools.jsf.compositeproblem"; //$NON-NLS-1$
public static final String SHORT_ID = "jboss.jsf.core"; //$NON-NLS-1$
+ public static final String PREFERENCE_PAGE_ID =
"org.jboss.tools.jsf.ui.preferences.JSFValidationPreferencePage"; //$NON-NLS-1$
private static final String COMPOSITE_COMPONENT_URI_PREFIX =
"http://java.sun.com/jsf/composite/"; //$NON-NLS-1$
@@ -380,6 +381,6 @@
@Override
protected String getPreferencePageId() {
- return "org.jboss.tools.jsf.ui.preferences.JSFValidationPreferencePage";
+ return PREFERENCE_PAGE_ID;
}
}
\ No newline at end of file
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationPreferencePage.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationPreferencePage.java 2011-11-17
21:21:37 UTC (rev 36421)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationPreferencePage.java 2011-11-17
21:36:29 UTC (rev 36422)
@@ -14,13 +14,14 @@
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
import org.jboss.tools.jsf.JSFModelPlugin;
+import org.jboss.tools.jsf.web.validation.composite.CompositeComponentValidator;
/**
* @author Alexey Kazakov
*/
public class JSFValidationPreferencePage extends SeverityPreferencePage {
- public static final String PREF_ID =
"org.jboss.tools.jsf.ui.preferences.JSFValidationPreferencePage"; //$NON-NLS-1$
+ public static final String PREF_ID = CompositeComponentValidator.PREFERENCE_PAGE_ID;
public static final String PROP_ID =
"org.jboss.tools.jsf.ui.propertyPages.JSFValidationPreferencePage";
//$NON-NLS-1$
public JSFValidationPreferencePage() {
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java 2011-11-17
21:21:37 UTC (rev 36421)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java 2011-11-17
21:36:29 UTC (rev 36422)
@@ -69,6 +69,7 @@
public static final String ID = "org.jboss.tools.jst.web.kb.ELValidator";
//$NON-NLS-1$
public static final String PROBLEM_TYPE =
"org.jboss.tools.jst.web.kb.elproblem"; //$NON-NLS-1$
+ public static final String PREFERENCE_PAGE_ID =
"org.jboss.tools.jst.web.ui.preferences.ELValidatorPreferencePage";
//$NON-NLS-1$
private static final String EXTENSION_POINT_ID =
"org.jboss.tools.jst.web.kb.elValidationDelegate"; //$NON-NLS-1$
@@ -493,6 +494,6 @@
@Override
protected String getPreferencePageId() {
- return "org.jboss.tools.jst.web.kb.preferences.KBValidationPreferencePage";
+ return PREFERENCE_PAGE_ID;
}
}
\ No newline at end of file
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorPreferencePage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorPreferencePage.java 2011-11-17
21:21:37 UTC (rev 36421)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorPreferencePage.java 2011-11-17
21:36:29 UTC (rev 36422)
@@ -14,12 +14,13 @@
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
import org.jboss.tools.jst.web.kb.WebKbPlugin;
+import org.jboss.tools.jst.web.kb.internal.validation.ELValidator;
/**
* @author Viacheslav Kabanovich
*/
public class ELValidatorPreferencePage extends SeverityPreferencePage {
- public static final String PREF_ID =
"org.jboss.tools.jst.web.ui.preferences.ELValidatorPreferencePage";
//$NON-NLS-1$
+ public static final String PREF_ID = ELValidator.PREFERENCE_PAGE_ID;
public static final String PROP_ID =
"org.jboss.tools.jst.web.ui.properties.ELValidatorPreferencePage";
//$NON-NLS-1$
public ELValidatorPreferencePage() {
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationErrorManager.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationErrorManager.java 2011-11-17
21:21:37 UTC (rev 36421)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationErrorManager.java 2011-11-17
21:36:29 UTC (rev 36422)
@@ -20,6 +20,7 @@
abstract public class SeamValidationErrorManager extends ValidationErrorManager {
public static final String MARKED_SEAM_PROJECT_MESSAGE_GROUP =
"markedSeamProject"; //$NON-NLS-1$
+ public static final String PREFERENCE_PAGE_ID =
"org.jboss.tools.seam.ui.preferences.SeamValidatorPreferencePage";
//$NON-NLS-1$
/* (non-Javadoc)
* @see
org.jboss.tools.jst.web.kb.internal.validation.ValidationErrorManager#getPreference(org.eclipse.core.resources.IProject,
java.lang.String)
@@ -40,6 +41,6 @@
@Override
protected String getPreferencePageId() {
- return "org.jboss.tools.seam.ui.preferences.SeamValidatorPreferencePage";
+ return PREFERENCE_PAGE_ID;
}
}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java 2011-11-17
21:21:37 UTC (rev 36421)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java 2011-11-17
21:36:29 UTC (rev 36422)
@@ -15,12 +15,13 @@
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
import org.jboss.tools.seam.core.SeamCorePlugin;
+import org.jboss.tools.seam.internal.core.validation.SeamValidationErrorManager;
/**
* @author Viacheslav Kabanovich
*/
public class SeamValidatorPreferencePage extends SeverityPreferencePage {
- public static final String PREF_ID =
"org.jboss.tools.seam.ui.preferences.SeamValidatorPreferencePage";
//$NON-NLS-1$
+ public static final String PREF_ID = SeamValidationErrorManager.PREFERENCE_PAGE_ID;
public static final String PROP_ID =
"org.jboss.tools.seam.ui.propertyPages.SeamValidatorPreferencePage";
//$NON-NLS-1$
public SeamValidatorPreferencePage() {