Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2013-04-16 18:57:24 +0000
committerBrian Vosburgh2013-04-16 20:11:35 +0000
commit2083fa0fc178dec565717b5ff9002246f0c0a9ab (patch)
tree215143f2ed4265901e57b2b5b3697a346a3bb094 /jaxb/plugins
parent625f0bddb7cc748951f0533dce4a5f663cc50dc9 (diff)
downloadwebtools.dali-2083fa0fc178dec565717b5ff9002246f0c0a9ab.tar.gz
webtools.dali-2083fa0fc178dec565717b5ff9002246f0c0a9ab.tar.xz
webtools.dali-2083fa0fc178dec565717b5ff9002246f0c0a9ab.zip
[293835] add EclipseLink validation severity preferences page and
project properties page
Diffstat (limited to 'jaxb/plugins')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/validation/JptJaxbCoreValidationMessages.java21
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/validation/JptJaxbEclipseLinkCoreValidationMessages.java21
2 files changed, 4 insertions, 38 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/validation/JptJaxbCoreValidationMessages.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/validation/JptJaxbCoreValidationMessages.java
index 41470cbac4..4fda39bd32 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/validation/JptJaxbCoreValidationMessages.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/validation/JptJaxbCoreValidationMessages.java
@@ -9,11 +9,10 @@
******************************************************************************/
package org.eclipse.jpt.jaxb.core.validation;
-import org.eclipse.core.resources.IProject;
import org.eclipse.jpt.common.core.internal.utility.ValidationMessageLoader;
import org.eclipse.jpt.common.core.utility.ValidationMessage;
-import org.eclipse.jpt.common.utility.internal.ObjectTools;
import org.eclipse.jpt.jaxb.core.JaxbProject;
+import org.eclipse.jpt.jaxb.core.internal.plugin.JptJaxbCorePlugin;
import org.eclipse.wst.validation.internal.provisional.core.IMessage;
/**
@@ -133,23 +132,7 @@ public class JptJaxbCoreValidationMessages {
// ********** static initialization **********
- private static final ValidationMessageLoader.PreferencesAdapter PREFERENCES_ADAPTER = new PreferencesAdapter();
- private static class PreferencesAdapter
- implements ValidationMessageLoader.PreferencesAdapter
- {
- PreferencesAdapter() {
- super();
- }
- // TODO
- public int getSeverity(IProject project, String messageID, int defaultSeverity) {
- return defaultSeverity;
- // return JaxbPreferences.getValidationMessageSeverity(project, messageID, defaultSeverity);
- }
- @Override
- public String toString() {
- return ObjectTools.toString(this);
- }
- }
+ private static final ValidationMessageLoader.PreferencesAdapter PREFERENCES_ADAPTER = new ValidationMessageLoader.PluginPreferencesAdapter(JptJaxbCorePlugin.instance());
private static final String MESSAGE_BUNDLE_NAME = "jpt_jaxb_core_validation"; //$NON-NLS-1$
private static final String DESCRIPTION_BUNDLE_NAME = "jpt_jaxb_core_validation_description"; //$NON-NLS-1$
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/validation/JptJaxbEclipseLinkCoreValidationMessages.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/validation/JptJaxbEclipseLinkCoreValidationMessages.java
index 5c1e375ed2..06cfb57d6c 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/validation/JptJaxbEclipseLinkCoreValidationMessages.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/validation/JptJaxbEclipseLinkCoreValidationMessages.java
@@ -9,12 +9,11 @@
******************************************************************************/
package org.eclipse.jpt.jaxb.eclipselink.core.validation;
-import org.eclipse.core.resources.IProject;
import org.eclipse.jpt.common.core.internal.utility.ValidationMessageLoader;
import org.eclipse.jpt.common.core.utility.ValidationMessage;
-import org.eclipse.jpt.common.utility.internal.ObjectTools;
import org.eclipse.jpt.jaxb.core.JaxbProject;
import org.eclipse.wst.validation.internal.provisional.core.IMessage;
+import org.eclipse.jpt.jaxb.eclipselink.core.internal.plugin.JptJaxbEclipseLinkCorePlugin;
/**
* Localized validation messages used by Dali EclipseLink JAXB core.
@@ -82,23 +81,7 @@ public class JptJaxbEclipseLinkCoreValidationMessages {
// ********** static initialization **********
- private static final ValidationMessageLoader.PreferencesAdapter PREFERENCES_ADAPTER = new PreferencesAdapter();
- private static class PreferencesAdapter
- implements ValidationMessageLoader.PreferencesAdapter
- {
- PreferencesAdapter() {
- super();
- }
- // TODO
- public int getSeverity(IProject project, String messageID, int defaultSeverity) {
- return defaultSeverity;
- // return JaxbEclipseLinkPreferences.getValidationMessageSeverity(project, messageID, defaultSeverity);
- }
- @Override
- public String toString() {
- return ObjectTools.toString(this);
- }
- }
+ private static final ValidationMessageLoader.PreferencesAdapter PREFERENCES_ADAPTER = new ValidationMessageLoader.PluginPreferencesAdapter(JptJaxbEclipseLinkCorePlugin.instance());
private static final String MESSAGE_BUNDLE_NAME = "jpt_jaxb_eclipselink_core_validation"; //$NON-NLS-1$
private static final String DESCRIPTION_BUNDLE_NAME = "jpt_jaxb_eclipselink_core_validation_description"; //$NON-NLS-1$

Back to the top