Author: dazarov
Date: 2011-11-17 14:26:02 -0500 (Thu, 17 Nov 2011)
New Revision: 36412
Added:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/
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/ConfigureProblemSeverityResolutionGenerator.java
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/CDIConfigurationBlock.java
trunk/common/plugins/org.jboss.tools.common.ui/META-INF/MANIFEST.MF
trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIMessages.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/SeverityConfigurationBlock.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencePage.java
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationErrorManager.java
trunk/common/tests/org.jboss.tools.common.validation.test/src/org/jboss/tools/common/validation/test/TestValidator.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/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.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationConfigurationBlock.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorConfigurationBlock.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/SeamValidatorConfigurationBlock.java
Log:
"Configure Problem Severity" quick fix for every CDI 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
19:18:12 UTC (rev 36411)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -2517,5 +2517,10 @@
CDICorePlugin.getDefault().logError(e);
}
}
+
+ @Override
+ protected String getPreferencePageId() {
+ return "org.jboss.tools.cdi.ui.preferences.CDIValidatorPreferencePage";
+ }
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java 2011-11-17
19:18:12 UTC (rev 36411)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -69,4 +69,9 @@
protected IDialogSettings getDialogSettings() {
return
CDICorePlugin.getDefault().getDialogSettings().getSection(SETTINGS_SECTION_NAME);
}
+
+ @Override
+ protected String getQualifier() {
+ return CDICorePlugin.PLUGIN_ID;
+ }
}
\ No newline at end of file
Modified: trunk/common/plugins/org.jboss.tools.common.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/META-INF/MANIFEST.MF 2011-11-17
19:18:12 UTC (rev 36411)
+++ trunk/common/plugins/org.jboss.tools.common.ui/META-INF/MANIFEST.MF 2011-11-17
19:26:02 UTC (rev 36412)
@@ -21,7 +21,8 @@
org.eclipse.core.databinding.beans;bundle-version="1.2.100",
org.eclipse.ui.navigator;bundle-version="3.5.100",
org.eclipse.ui.navigator.resources;bundle-version="3.4.300",
- org.eclipse.debug.ui;bundle-version="3.7.0"
+ org.eclipse.debug.ui;bundle-version="3.7.0",
+ org.jboss.tools.common.validation;bundle-version="3.3.0"
Export-Package: org.jboss.tools.common.ui,
org.jboss.tools.common.ui.databinding,
org.jboss.tools.common.ui.preferences,
Modified: trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml 2011-11-17 19:18:12 UTC (rev
36411)
+++ trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml 2011-11-17 19:26:02 UTC (rev
36412)
@@ -55,4 +55,9 @@
name="%perspective.name">
</perspective>
</extension>
+ <extension point="org.eclipse.ui.ide.markerResolution">
+ <markerResolutionGenerator
+
class="org.jboss.tools.common.ui.marker.ConfigureProblemSeverityResolutionGenerator"/>
+ </extension>
+
</plugin>
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIMessages.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIMessages.java 2011-11-17
19:18:12 UTC (rev 36411)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIMessages.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -73,6 +73,8 @@
public static String URLSTRINGVALIDATOR_NOT_A_VALID_URL;
public static String MANDATORYSTRING_VALIDATOR_MUST_PROVIDE_VALUE;
+
+ public static String CONFIGURE_PROBLEM_SEVERITY;
static {
NLS.initializeMessages(BUNDLE_NAME, CommonUIMessages.class);
Added:
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
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityMarkerResolution.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * 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.common.ui.marker;
+
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.debug.internal.ui.DebugUIPlugin;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.IMarkerResolution2;
+import org.eclipse.ui.dialogs.PreferencesUtil;
+import org.eclipse.ui.progress.UIJob;
+import org.jboss.tools.common.ui.CommonUIMessages;
+
+/**
+ * @author Daniel Azarov
+ */
+public class ConfigureProblemSeverityMarkerResolution implements
+ IMarkerResolution2 {
+ private String preferencePageId;
+ private String preferenceKey;
+
+ public ConfigureProblemSeverityMarkerResolution(String preferencePageId, String
preferenceKey){
+ this.preferencePageId = preferencePageId;
+ this.preferenceKey = preferenceKey;
+ }
+
+ public String getLabel() {
+ return CommonUIMessages.CONFIGURE_PROBLEM_SEVERITY;
+ }
+
+ public void run(IMarker marker) {
+ UIJob job = new UIJob(""){ //$NON-NLS-1$
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ PreferencesUtil.createPreferenceDialogOn(DebugUIPlugin.getShell(),
+ ConfigureProblemSeverityMarkerResolution.this.preferencePageId,
+ new String[]{ConfigureProblemSeverityMarkerResolution.this.preferencePageId},
+ ConfigureProblemSeverityMarkerResolution.this.preferenceKey).open();
+ return Status.OK_STATUS;
+ }
+ };
+ job.setSystem(true);
+ job.setPriority(Job.INTERACTIVE);
+ job.schedule();
+ }
+
+ public String getDescription() {
+ return CommonUIMessages.CONFIGURE_PROBLEM_SEVERITY;
+ }
+
+ public Image getImage() {
+ return null;
+ }
+
+}
Property changes on:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityMarkerResolution.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityResolutionGenerator.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityResolutionGenerator.java
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityResolutionGenerator.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * 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.common.ui.marker;
+
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.ui.IMarkerResolution;
+import org.eclipse.ui.IMarkerResolutionGenerator2;
+import org.jboss.tools.common.ui.CommonUIPlugin;
+import org.jboss.tools.common.validation.ValidationErrorManager;
+
+/**
+ * @author Daniel Azarov
+ */
+public class ConfigureProblemSeverityResolutionGenerator implements
+ IMarkerResolutionGenerator2 {
+
+ public IMarkerResolution[] getResolutions(IMarker marker) {
+ try {
+ String preferenceKey = getPreferenceKey(marker);
+ String preferencePageId = getPreferencePageId(marker);
+ if(preferenceKey != null && preferencePageId != null){
+ return new IMarkerResolution[]{new
ConfigureProblemSeverityMarkerResolution(preferencePageId, preferenceKey)};
+ }
+ } catch (CoreException e) {
+ CommonUIPlugin.getDefault().logError(e);
+ }
+ return new IMarkerResolution[] {};
+ }
+
+ public boolean hasResolutions(IMarker marker) {
+ try {
+ return getPreferenceKey(marker) != null && getPreferencePageId(marker) !=
null;
+ } catch (CoreException ex) {
+ CommonUIPlugin.getDefault().logError(ex);
+ }
+ return false;
+ }
+
+ private String getPreferenceKey(IMarker marker)throws CoreException{
+ String attribute =
marker.getAttribute(ValidationErrorManager.PREFERENCE_KEY_ATTRIBUTE_NAME, null);
+ return attribute;
+ }
+
+ private String getPreferencePageId(IMarker marker)throws CoreException{
+ String attribute = marker.getAttribute(ValidationErrorManager.PREFERENCE_PAGE_ID_NAME,
null);
+ return attribute;
+ }
+
+}
Property changes on:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/ConfigureProblemSeverityResolutionGenerator.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
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-11-17
19:18:12 UTC (rev 36411)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties 2011-11-17
19:26:02 UTC (rev 36412)
@@ -31,4 +31,6 @@
BROWSER_COULD_NOT_DISPLAY_MALFORMED_URL=Could not display malformed url
\"{0}\".
URLSTRINGVALIDATOR_NOT_A_VALID_URL=\"{0}\" is not a valid url.
-MANDATORYSTRING_VALIDATOR_MUST_PROVIDE_VALUE=You have to provide a {0}.
\ No newline at end of file
+MANDATORYSTRING_VALIDATOR_MUST_PROVIDE_VALUE=You have to provide a {0}.
+
+CONFIGURE_PROBLEM_SEVERITY=Configure Problem Severity
\ No newline at end of file
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityConfigurationBlock.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityConfigurationBlock.java 2011-11-17
19:18:12 UTC (rev 36411)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityConfigurationBlock.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -32,6 +32,7 @@
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
@@ -83,7 +84,7 @@
protected PixelConverter fPixelConverter;
protected FilteredPreferenceTree fFilteredPrefTree;
-
+
public SeverityConfigurationBlock(IStatusChangeListener context,
IProject project, Key[] allKeys,
IWorkbenchPreferenceContainer container) {
@@ -300,4 +301,25 @@
key = getKey(pluginId, keyName);
}
}
+
+ public void doFilter(String prefId){
+ String qualifier = getQualifier();
+ Key key = null;
+ for(Key k : fAllKeys){
+ if(k.getQualifier().equals(qualifier) && k.getName().equals(prefId))
+ key = k;
+ }
+ if(key != null){
+ Combo combo = getComboBox(key);
+ if(combo != null){
+ String value = ((Label)fLabels.get(combo)).getText();
+
+ if(value != null)
+ fFilteredPrefTree.doFilter(value);
+ }
+ }
+ }
+
+ abstract protected String getQualifier();
+
}
\ No newline at end of file
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-11-17
19:18:12 UTC (rev 36411)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencePage.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -155,4 +155,13 @@
getPreferenceStore().setValue(SeverityPreferences.ENABLE_BLOCK_PREFERENCE_NAME,
newValue);
}
}
+
+ @Override
+ public void applyData(Object data) {
+ if(data instanceof String){
+ getConfigurationBlock().doFilter((String)data);
+ }else{
+ super.applyData(data);
+ }
+ }
}
\ No newline at end of file
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationErrorManager.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationErrorManager.java 2011-11-17
19:18:12 UTC (rev 36411)
+++
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationErrorManager.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -41,6 +41,8 @@
public static String DEFAULT_VALIDATION_MARKER = ValidationPlugin.PLUGIN_ID +
".problemmarker"; //$NON-NLS-1$
static String VALIDATION_MARKER_OWNER = "owner"; //$NON-NLS-1$
static String VALIDATION_MARKER_GROUP = "groupName"; //$NON-NLS-1$
+ public static final String PREFERENCE_KEY_ATTRIBUTE_NAME = "preference_key";
//$NON-NLS-1$
+ public static final String PREFERENCE_PAGE_ID_NAME = "preference_page_id";
//$NON-NLS-1$
protected IStatus OK_STATUS = new Status(IStatus.OK,
"org.eclipse.wst.validation", 0, "OK", null); //$NON-NLS-1$
//$NON-NLS-2$
@@ -226,6 +228,8 @@
markers.clear();
}
+ abstract protected String getPreferencePageId();
+
/*
* (non-Javadoc)
* @see
org.jboss.tools.seam.internal.core.validation.IValidationErrorManager#addError(java.lang.String,
java.lang.String, java.lang.String[], int, int, org.eclipse.core.resources.IResource)
@@ -251,6 +255,18 @@
marker = addError(message, severity, messageArguments, lineNumber, length, offset,
target, getDocumentProvider(), getMarkerId(), getMarkerOwner());
}
}
+ try {
+ if(marker!=null) {
+ String preferencePageId = getPreferencePageId();
+ if(preferencePageId != null && preferenceKey != null){
+ marker.setAttribute(PREFERENCE_KEY_ATTRIBUTE_NAME, preferenceKey);
+ marker.setAttribute(PREFERENCE_PAGE_ID_NAME, preferencePageId);
+ }
+
+ }
+ } catch(CoreException e) {
+ CommonPlugin.getDefault().logError(e);
+ }
return marker;
}
Modified:
trunk/common/tests/org.jboss.tools.common.validation.test/src/org/jboss/tools/common/validation/test/TestValidator.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.validation.test/src/org/jboss/tools/common/validation/test/TestValidator.java 2011-11-17
19:18:12 UTC (rev 36411)
+++
trunk/common/tests/org.jboss.tools.common.validation.test/src/org/jboss/tools/common/validation/test/TestValidator.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -100,4 +100,9 @@
public String getMarkerType() {
return ValidationErrorManager.DEFAULT_VALIDATION_MARKER;
}
+
+ @Override
+ protected String getPreferencePageId() {
+ return null;
+ }
}
\ No newline at end of file
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
19:18:12 UTC (rev 36411)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/composite/CompositeComponentValidator.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -377,4 +377,9 @@
protected boolean shouldValidateJavaSources() {
return false;
}
+
+ @Override
+ protected String getPreferencePageId() {
+ return "org.jboss.tools.jsf.ui.preferences.JSFValidationPreferencePage";
+ }
}
\ 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-11-17
19:18:12 UTC (rev 36411)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFValidationConfigurationBlock.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -84,4 +84,9 @@
protected IDialogSettings getDialogSettings() {
return
JSFModelPlugin.getDefault().getDialogSettings().getSection(SETTINGS_SECTION_NAME);
}
+
+ @Override
+ protected String getQualifier() {
+ return JSFModelPlugin.PLUGIN_ID;
+ }
}
\ No newline at end of file
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
19:18:12 UTC (rev 36411)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -490,4 +490,9 @@
protected boolean shouldValidateJavaSources() {
return true;
}
+
+ @Override
+ protected String getPreferencePageId() {
+ return "org.jboss.tools.jst.web.kb.preferences.KBValidationPreferencePage";
+ }
}
\ 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-11-17
19:18:12 UTC (rev 36411)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationConfigurationBlock.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -71,4 +71,9 @@
protected IDialogSettings getDialogSettings() {
return WebKbPlugin.getDefault().getDialogSettings().getSection(SETTINGS_SECTION_NAME);
}
+
+ @Override
+ protected String getQualifier() {
+ return WebKbPlugin.PLUGIN_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/ELValidatorConfigurationBlock.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorConfigurationBlock.java 2011-11-17
19:18:12 UTC (rev 36411)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/internal/preferences/ELValidatorConfigurationBlock.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -183,4 +183,9 @@
protected IDialogSettings getDialogSettings() {
return WebKbPlugin.getDefault().getDialogSettings().getSection(SETTINGS_SECTION_NAME);
}
+
+ @Override
+ protected String getQualifier() {
+ return WebKbPlugin.PLUGIN_ID;
+ }
}
\ No newline at end of file
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
19:18:12 UTC (rev 36411)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationErrorManager.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -37,4 +37,9 @@
public int getMaxNumberOfMarkersPerFile(IProject project) {
return SeamPreferences.getMaxNumberOfProblemMarkersPerFile(project);
}
+
+ @Override
+ protected String getPreferencePageId() {
+ return "org.jboss.tools.seam.ui.preferences.SeamValidatorPreferencePage";
+ }
}
\ 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-11-17
19:18:12 UTC (rev 36411)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java 2011-11-17
19:26:02 UTC (rev 36412)
@@ -180,4 +180,9 @@
protected IDialogSettings getDialogSettings() {
return
SeamCorePlugin.getDefault().getDialogSettings().getSection(SETTINGS_SECTION_NAME);
}
+
+ @Override
+ protected String getQualifier() {
+ return SeamCorePlugin.PLUGIN_ID;
+ }
}
\ No newline at end of file