Author: dazarov
Date: 2011-11-17 16:46:03 -0500 (Thu, 17 Nov 2011)
New Revision: 36423
Modified:
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ESBCoreValidator.java
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBConfigurationBlock.java
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBValidatorPreferencePage.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/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ESBCoreValidator.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ESBCoreValidator.java 2011-11-17
21:36:29 UTC (rev 36422)
+++
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ESBCoreValidator.java 2011-11-17
21:46:03 UTC (rev 36423)
@@ -47,6 +47,7 @@
public class ESBCoreValidator extends ESBValidationErrorManager implements IValidator {
public static final String ID =
"org.jboss.tools.esb.validator.ESBCoreValidator"; //$NON-NLS-1$
public static final String PROBLEM_TYPE =
"org.jboss.tools.esb.validator.esbproblem"; //$NON-NLS-1$
+ public static final String PREFERENCE_PAGE_ID =
"org.jboss.tools.esb.validator.ui.ESBValidatorPreferencePage"; //$NON-NLS-1$
static String XML_EXT = ".xml"; //$NON-NLS-1$
static String ATTR_PATH = "path"; //$NON-NLS-1$
@@ -370,6 +371,11 @@
}
}
}
+
+ @Override
+ protected String getPreferencePageId() {
+ return PREFERENCE_PAGE_ID;
+ }
}
class XMLValueInfo implements IValueInfo {
Modified:
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBConfigurationBlock.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBConfigurationBlock.java 2011-11-17
21:36:29 UTC (rev 36422)
+++
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBConfigurationBlock.java 2011-11-17
21:46:03 UTC (rev 36423)
@@ -85,4 +85,9 @@
protected IDialogSettings getDialogSettings() {
return
ESBValidatorPlugin.getDefault().getDialogSettings().getSection(SETTINGS_SECTION_NAME);
}
+
+ @Override
+ protected String getQualifier() {
+ return ESBValidatorPlugin.PLUGIN_ID;
+ }
}
\ No newline at end of file
Modified:
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBValidatorPreferencePage.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBValidatorPreferencePage.java 2011-11-17
21:36:29 UTC (rev 36422)
+++
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBValidatorPreferencePage.java 2011-11-17
21:46:03 UTC (rev 36423)
@@ -13,6 +13,7 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
+import org.jboss.tools.esb.validator.ESBCoreValidator;
import org.jboss.tools.esb.validator.ESBValidatorPlugin;
/**
@@ -20,7 +21,7 @@
*/
public class ESBValidatorPreferencePage extends SeverityPreferencePage {
- public static final String PREF_ID =
"org.jboss.tools.esb.validator.ui.ESBValidatorPreferencePage"; //$NON-NLS-1$
+ public static final String PREF_ID = ESBCoreValidator.PREFERENCE_PAGE_ID;
public static final String PROP_ID =
"org.jboss.tools.esb.validator.ui.propertyPages.ESBValidatorPreferencePage";
//$NON-NLS-1$
public ESBValidatorPreferencePage() {