Author: vrubezhny
Date: 2010-12-30 10:42:46 -0500 (Thu, 30 Dec 2010)
New Revision: 27832
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.properties
trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties
Log:
JBIDE-8013
Move the acquirement for KB Builder requirements out of the nature(-s)
New extension point is used to declare KB Builder requirement.
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.properties
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.properties 2010-12-30 15:39:13 UTC
(rev 27831)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.properties 2010-12-30 15:42:46 UTC
(rev 27832)
@@ -1 +1,3 @@
-KBProblemName=CDI Problem
\ No newline at end of file
+KBProblemName=CDI Problem
+
+KB_REQUIRED_FOR_CDI=CDI
\ No newline at end of file
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml 2010-12-30 15:39:13 UTC (rev
27831)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml 2010-12-30 15:42:46 UTC (rev
27832)
@@ -145,6 +145,15 @@
</delegate>
</extension>
+ <extension
+ id="org.jboss.tools.cdi.core.KbRequire"
+ point="org.jboss.tools.jst.web.kb.KbRequire">
+ <require
+ description="%KB_REQUIRED_FOR_CDI"
+ forNature="org.jboss.tools.cdi.core.cdinature">
+ </require>
+ </extension>
+
<!-- Workaround for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=315390 -->
<extension
id="excludeEJBValidation"
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java 2010-12-30
15:39:13 UTC (rev 27831)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java 2010-12-30
15:42:46 UTC (rev 27832)
@@ -34,5 +34,4 @@
public static String CDI_RENAME_PROCESSOR_BEAN_HAS_NO_FILE;
public static String CDI_RENAME_PROCESSOR_BEAN_HAS_NO_NAME_LOCATION;
public static String CDI_UTIL_BUILD_CDI_MODEL;
- public static String CDI_NATURE_DESCRIPTION;
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2010-12-30
15:39:13 UTC (rev 27831)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2010-12-30
15:42:46 UTC (rev 27832)
@@ -38,11 +38,10 @@
import org.jboss.tools.common.util.FileUtil;
import org.jboss.tools.common.xml.XMLUtilities;
import org.jboss.tools.jst.web.kb.WebKbPlugin;
-import org.jboss.tools.jst.web.kb.internal.IKBBuilderRequiredNature;
import org.jboss.tools.jst.web.kb.internal.validation.ProjectValidationContext;
import org.w3c.dom.Element;
-public class CDICoreNature implements IProjectNature, IKBBuilderRequiredNature {
+public class CDICoreNature implements IProjectNature {
public static String NATURE_ID = "org.jboss.tools.cdi.core.cdinature";
IProject project = null;
@@ -424,14 +423,6 @@
return validationContext;
}
- public boolean isKBBuilderRequired() {
- return true;
- }
-
- public String getNatureDescription() {
- return CDICoreMessages.CDI_NATURE_DESCRIPTION;
- }
-
/**
* Test method.
*/
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties 2010-12-30
15:39:13 UTC (rev 27831)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties 2010-12-30
15:42:46 UTC (rev 27832)
@@ -9,4 +9,3 @@
CDI_RENAME_PROCESSOR_BEAN_HAS_NO_FILE=Named Bean does not have a file
CDI_RENAME_PROCESSOR_BEAN_HAS_NO_NAME_LOCATION=Named Bean does not have a name location
CDI_UTIL_BUILD_CDI_MODEL=Build CDI Model
-CDI_NATURE_DESCRIPTION=CDI
\ No newline at end of file