Author: dazarov
Date: 2011-12-28 20:12:32 -0500 (Wed, 28 Dec 2011)
New Revision: 37573
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIValidatorPreferencePage.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityMarkerResolution.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencePage.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
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationConfigurationBlock.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationPreferencePage.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationConfigurationBlock.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorConfigurationBlock.java
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/WebXMLConfigurationBlock.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/WebXMLValidatorPreferencePage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java
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/StrutsConfigValidatorPreferencePage.java
Log:
"Configure Problem Severity" quick fix label should contain property name
https://issues.jboss.org/browse/JBIDE-10568
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-12-29
00:56:12 UTC (rev 37572)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIValidatorPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -15,6 +15,7 @@
import org.jboss.tools.cdi.core.CDICorePlugin;
import org.jboss.tools.cdi.internal.core.validation.CDICoreValidator;
import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
+import
org.jboss.tools.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
/**
* @author Alexey Kazakov
@@ -52,4 +53,9 @@
super.createControl(parent);
}
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return CDIConfigurationBlockDescriptionProvider.getInstance().getSections();
+ }
}
\ No newline at end of file
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityMarkerResolution.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityMarkerResolution.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityMarkerResolution.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -10,6 +10,9 @@
******************************************************************************/
package org.jboss.tools.common.ui.marker;
+import java.util.Iterator;
+import java.util.List;
+
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
@@ -18,27 +21,39 @@
import org.eclipse.debug.internal.ui.DebugUIPlugin;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.JavaPluginImages;
+import org.eclipse.jface.preference.IPreferenceNode;
+import org.eclipse.jface.preference.PreferenceManager;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.IMarkerResolution2;
+import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.PreferencesUtil;
+import org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode;
import org.eclipse.ui.progress.UIJob;
import org.jboss.tools.common.ui.CommonUIMessages;
+import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
/**
* @author Daniel Azarov
*/
public class ConfigureProblemSeverityMarkerResolution implements
IMarkerResolution2 {
+ private static final int PREFERENCE_SIZE = 40;
+ private static final String DOTS = "...";
+
private String preferencePageId;
private String preferenceKey;
+ private String label;
public ConfigureProblemSeverityMarkerResolution(String preferencePageId, String
preferenceKey){
this.preferencePageId = preferencePageId;
this.preferenceKey = preferenceKey;
+ String preferenceName = getPreferenceLabel();
+ label = NLS.bind(CommonUIMessages.CONFIGURE_PROBLEM_SEVERITY, preferenceName);
}
public String getLabel() {
- return CommonUIMessages.CONFIGURE_PROBLEM_SEVERITY;
+ return label;
}
public void run(IMarker marker) {
@@ -57,11 +72,44 @@
}
public String getDescription() {
- return CommonUIMessages.CONFIGURE_PROBLEM_SEVERITY;
+ return label;
}
public Image getImage() {
return
JavaPlugin.getImageDescriptorRegistry().get(JavaPluginImages.DESC_ELCL_CONFIGURE_PROBLEM_SEVERITIES);
}
-
+
+ private WorkbenchPreferenceNode findPageNode() {
+ final PreferenceManager preferenceManager = PlatformUI.getWorkbench()
+ .getPreferenceManager();
+ List nodes = preferenceManager.getElements(PreferenceManager.POST_ORDER);
+ for (Iterator i = nodes.iterator(); i.hasNext();) {
+ IPreferenceNode node = (IPreferenceNode) i.next();
+ if (node.getId().equals(preferencePageId)) {
+ return (WorkbenchPreferenceNode)node;
+ }
+ }
+ return null;
+ }
+
+ private String getPreferenceLabel() {
+ WorkbenchPreferenceNode pageNode = findPageNode();
+ pageNode.createPage();
+ if(pageNode != null && pageNode.getPage() instanceof SeverityPreferencePage){
+ SeverityPreferencePage page = (SeverityPreferencePage)pageNode.getPage();
+ return cut(page.getLabel(preferenceKey));
+ }
+ return null;
+ }
+
+ private String cut(String label){
+ if(label.length() > PREFERENCE_SIZE){
+ return label.substring(0, PREFERENCE_SIZE-1)+DOTS;
+ }else{
+ if(label.endsWith(":")){
+ return label.substring(0, label.length()-1);
+ }
+ return label;
+ }
+ }
}
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties 2011-12-29
01:12:32 UTC (rev 37573)
@@ -33,7 +33,7 @@
URLSTRINGVALIDATOR_NOT_A_VALID_URL=\"{0}\" is not a valid url.
MANDATORYSTRING_VALIDATOR_MUST_PROVIDE_VALUE=You have to provide a {0}.
-CONFIGURE_PROBLEM_SEVERITY=Configure Problem Severity
+CONFIGURE_PROBLEM_SEVERITY=Configure Problem Severity for preference
''{0}''
ADD_SUPPRESS_WARNINGS_TITLE=Add @SuppressWarnings ''{0}'' to
''{1}''
ADD_SUPPRESS_WARNINGS_MESSAGE=This quick fix uses warning names that are not supported by
The Java Validator and will cause \"Unsupported @SuppressWarning\" problem
message.\n\n
ADD_SUPPRESS_WARNINGS_QUESTION1=Do you want to disable 'Unsupported
@SuppressWarnings' validation?
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencePage.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencePage.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -24,6 +24,8 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.jboss.tools.common.preferences.SeverityPreferences;
+import
org.jboss.tools.common.ui.preferences.SeverityConfigurationBlock.OptionDescription;
+import
org.jboss.tools.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
/**
* @author Viacheslav Kabanovich
@@ -156,6 +158,33 @@
}
}
+ public String getLabel(String preferenceId){
+ for(SectionDescription section : getAllSections()){
+ String label = getLabel(section, preferenceId);
+ if(label != null){
+ return label;
+ }
+ }
+ return "";
+ }
+
+ private String getLabel(SectionDescription section, String preferenceId){
+ for(OptionDescription option : section.getOptions()){
+ if(option.key.getName().equals(preferenceId)){
+ return option.label;
+ }
+ }
+ for(SectionDescription s : section.getSections()){
+ String label = getLabel(s, preferenceId);
+ if(label != null){
+ return label;
+ }
+ }
+ return null;
+ }
+
+ protected abstract SectionDescription[] getAllSections();
+
@Override
public void applyData(Object data) {
if(data instanceof String){
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-12-29
00:56:12 UTC (rev 37572)
+++
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBConfigurationBlock.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -45,7 +45,7 @@
ESBValidatorPlugin.PLUGIN_ID
);
- private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
+ public static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
SECTION_CHANNEL_ID_REF,
SECTION_ACTION_DEFINITIONS,
};
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-12-29
00:56:12 UTC (rev 37572)
+++
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ui/ESBValidatorPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -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.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
import org.jboss.tools.esb.validator.ESBCoreValidator;
import org.jboss.tools.esb.validator.ESBValidatorPlugin;
@@ -52,4 +53,9 @@
super.createControl(parent);
}
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return ESBConfigurationBlock.ALL_SECTIONS;
+ }
}
\ No newline at end of file
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationConfigurationBlock.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationConfigurationBlock.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationConfigurationBlock.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -152,7 +152,7 @@
JSFModelPlugin.PLUGIN_ID
);
- private static SectionDescription[] ALL_SECTIONS = new SectionDescription[] {
+ public static SectionDescription[] ALL_SECTIONS = new SectionDescription[] {
SECTION_COMPOSITE_COMPONENTS,
SECTION_FACES_CONFIG
};
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-12-29
00:56:12 UTC (rev 37572)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -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.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
import org.jboss.tools.jsf.JSFModelPlugin;
import org.jboss.tools.jsf.web.validation.composite.CompositeComponentValidator;
@@ -56,4 +57,9 @@
super.createControl(parent);
}
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return JSFValidationConfigurationBlock.ALL_SECTIONS;
+ }
}
\ No newline at end of file
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationConfigurationBlock.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationConfigurationBlock.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationConfigurationBlock.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -35,7 +35,7 @@
WebKbPlugin.PLUGIN_ID
);
- private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
+ public static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
SECTION_KB_CONFIG,
};
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -14,6 +14,7 @@
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
import org.jboss.tools.common.ui.preferences.SeverityPreferencePage;
+import
org.jboss.tools.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
import org.jboss.tools.jst.web.kb.WebKbPlugin;
/**
@@ -49,4 +50,9 @@
protected String getPropertyPageID() {
return PROP_ID;
}
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return KBValidationConfigurationBlock.ALL_SECTIONS;
+ }
}
\ 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/ELValidatorConfigurationBlock.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorConfigurationBlock.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorConfigurationBlock.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -62,7 +62,7 @@
WebKbPlugin.PLUGIN_ID
);
- private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
+ public static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
SECTION_EL,
};
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-12-29
00:56:12 UTC (rev 37572)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -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.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
import org.jboss.tools.jst.web.kb.WebKbPlugin;
import org.jboss.tools.jst.web.kb.internal.validation.ELValidator;
@@ -45,4 +46,9 @@
super.createControl(parent);
}
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return ELValidatorConfigurationBlock.ALL_SECTIONS;
+ }
}
\ 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/WebXMLConfigurationBlock.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/WebXMLConfigurationBlock.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/WebXMLConfigurationBlock.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -66,7 +66,7 @@
WebModelPlugin.PLUGIN_ID
);
- private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
+ public static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
SECTION_CLASS_REFERENCES,
SECTION_RESOURCE_REFERENCES,
SECTION_OBJECT_REFERENCES,
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/WebXMLValidatorPreferencePage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/WebXMLValidatorPreferencePage.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/WebXMLValidatorPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -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.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
import org.jboss.tools.jst.web.WebModelPlugin;
import org.jboss.tools.jst.web.validation.WebXMLCoreValidator;
@@ -52,4 +53,9 @@
super.createControl(parent);
}
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return WebXMLConfigurationBlock.ALL_SECTIONS;
+ }
}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -126,7 +126,7 @@
SeamCorePlugin.PLUGIN_ID
);
- private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
+ public static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
SECTION_COMPONENT,
SECTION_ENTITY,
SECTION_LIFECYCLE,
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-12-29
00:56:12 UTC (rev 37572)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -14,6 +14,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.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.internal.core.validation.SeamValidationErrorManager;
@@ -46,4 +47,9 @@
super.createControl(parent);
}
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return SeamValidatorConfigurationBlock.ALL_SECTIONS;
+ }
}
\ No newline at end of file
Modified:
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 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigConfigurationBlock.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -18,9 +18,7 @@
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;
@@ -56,7 +54,7 @@
StrutsModelPlugin.PLUGIN_ID
);
- private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
+ public static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
SECTION_STRUTS_CONFIG,
SECTION_WEB_XML,
};
Modified:
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 2011-12-29
00:56:12 UTC (rev 37572)
+++
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/StrutsConfigValidatorPreferencePage.java 2011-12-29
01:12:32 UTC (rev 37573)
@@ -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.common.ui.preferences.SeverityConfigurationBlock.SectionDescription;
import org.jboss.tools.struts.StrutsModelPlugin;
import org.jboss.tools.struts.validation.StrutsCoreValidator;
@@ -52,4 +53,9 @@
super.createControl(parent);
}
+
+ @Override
+ protected SectionDescription[] getAllSections() {
+ return StrutsConfigConfigurationBlock.ALL_SECTIONS;
+ }
}
\ No newline at end of file