Author: scabanovich
Date: 2011-10-18 18:58:27 -0400 (Tue, 18 Oct 2011)
New Revision: 35777
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamConfigurationBlockDescriptionProvider.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamPreferencesMessages.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamPreferencesMessages.properties
Log:
JBIDE-9244
https://issues.jboss.org/browse/JBIDE-9244
Implemented validation of default beans (Solder); preferences are added.
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamConfigurationBlockDescriptionProvider.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamConfigurationBlockDescriptionProvider.java 2011-10-18
22:57:31 UTC (rev 35776)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamConfigurationBlockDescriptionProvider.java 2011-10-18
22:58:27 UTC (rev 35777)
@@ -1,7 +1,5 @@
package org.jboss.tools.cdi.seam.config.ui.preferences;
-import org.jboss.tools.cdi.core.CDICorePlugin;
-import org.jboss.tools.cdi.core.preferences.CDIPreferences;
import org.jboss.tools.cdi.seam.config.core.CDISeamConfigCorePlugin;
import org.jboss.tools.cdi.seam.config.core.CDISeamConfigPreferences;
import org.jboss.tools.cdi.seam.solder.core.CDISeamSolderCorePlugin;
@@ -34,6 +32,8 @@
{CDISeamSolderPreferences.AMBIGUOUS_GENERIC_CONFIGURATION_POINT,
CDISeamPreferencesMessages.CDIValidatorConfigurationBlock_pb_ambiguousGenericConfigurationPoint_label},
{CDISeamSolderPreferences.WRONG_TYPE_OF_GENERIC_CONFIGURATION_POINT,
CDISeamPreferencesMessages.CDIValidatorConfigurationBlock_pb_wrongTypeOfGenericConfigurationPoint_label},
{CDISeamSolderPreferences.GENERIC_CONFIGURATION_TYPE_IS_A_GENERIC_BEAN,
CDISeamPreferencesMessages.CDIValidatorConfigurationBlock_pb_genericConfigurationTypeIsGenericBean_label},
+ {CDISeamSolderPreferences.DEFAULT_PRODUCER_FIELD_ON_NORMAL_SCOPED_BEAN,
CDISeamPreferencesMessages.CDIValidatorConfigurationBlock_pb_defaultProducerFieldOnNormalScopedBean_label},
+ {CDISeamSolderPreferences.IDENTICAL_DEFAULT_BEANS,
CDISeamPreferencesMessages.CDIValidatorConfigurationBlock_pb_identicalDefaultBeans_label},
},
CDISeamSolderCorePlugin.PLUGIN_ID
);
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamPreferencesMessages.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamPreferencesMessages.java 2011-10-18
22:57:31 UTC (rev 35776)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamPreferencesMessages.java 2011-10-18
22:58:27 UTC (rev 35777)
@@ -22,6 +22,8 @@
public static String
CDIValidatorConfigurationBlock_pb_wrongTypeOfGenericConfigurationPoint_label;
public static String
CDIValidatorConfigurationBlock_pb_wrongGenericConfigurationAnnotationReference_label;
public static String
CDIValidatorConfigurationBlock_pb_genericConfigurationTypeIsGenericBean_label;
+ public static String
CDIValidatorConfigurationBlock_pb_defaultProducerFieldOnNormalScopedBean_label;
+ public static String CDIValidatorConfigurationBlock_pb_identicalDefaultBeans_label;
public static String CDI_SEAM_VALIDATOR_PREFERENCE_PAGE_TITLE;
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamPreferencesMessages.properties
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamPreferencesMessages.properties 2011-10-18
22:57:31 UTC (rev 35776)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/preferences/CDISeamPreferencesMessages.properties 2011-10-18
22:58:27 UTC (rev 35777)
@@ -13,7 +13,9 @@
##Section Seam Solder
CDIValidatorConfigurationBlock_section_solder=Seam Solder
-CDIValidatorConfigurationBlock_pb_ambiguousGenericConfigurationPoint_label=Duplicate
Generic Configuration Point:
-CDIValidatorConfigurationBlock_pb_wrongTypeOfGenericConfigurationPoint_label=Wrong Type
of Generic Configuration Point:
-CDIValidatorConfigurationBlock_pb_wrongGenericConfigurationAnnotationReference_label=Wrong
Generic Configuration Annotation Reference:
-CDIValidatorConfigurationBlock_pb_genericConfigurationTypeIsGenericBean_label=Generic
Configuration Type is a Generic Bean:
\ No newline at end of file
+CDIValidatorConfigurationBlock_pb_ambiguousGenericConfigurationPoint_label=Duplicate
generic configuration point:
+CDIValidatorConfigurationBlock_pb_wrongTypeOfGenericConfigurationPoint_label=Wrong type
of generic configuration point:
+CDIValidatorConfigurationBlock_pb_wrongGenericConfigurationAnnotationReference_label=Wrong
generic configuration annotation reference:
+CDIValidatorConfigurationBlock_pb_genericConfigurationTypeIsGenericBean_label=Generic
configuration type is a generic bean:
+CDIValidatorConfigurationBlock_pb_defaultProducerFieldOnNormalScopedBean_label=Default
producer field is declared on normal scoped bean:
+CDIValidatorConfigurationBlock_pb_identicalDefaultBeans_label=Two or more default beans
with same type and qualifiers:
\ No newline at end of file