Author: vrubezhny
Date: 2010-12-30 10:36:47 -0500 (Thu, 30 Dec 2010)
New Revision: 27830
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/plugin.properties
trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/JSFNature.java
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/jsf/plugins/org.jboss.tools.jsf/plugin.properties
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.properties 2010-12-30 15:36:42 UTC (rev
27829)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.properties 2010-12-30 15:36:47 UTC (rev
27830)
@@ -7,4 +7,6 @@
JSF2ProblemName = JSF 2 Problem
-KBProblemName=JSF EL Problem
\ No newline at end of file
+KBProblemName=JSF EL Problem
+
+KB_REQUIRED_FOR_JSF=JSF
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2010-12-30 15:36:42 UTC (rev 27829)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2010-12-30 15:36:47 UTC (rev 27830)
@@ -725,5 +725,14 @@
</instanceof>
</enablement>
</changePreviewViewer>
- </extension>
+ </extension>
+ <extension
+ id="org.jboss.tools.jsf.KbRequire"
+ point="org.jboss.tools.jst.web.kb.KbRequire">
+ <require
+ description="%KB_REQUIRED_FOR_JSF"
+ forNature="org.jboss.tools.jsf.jsfnature">
+ </require>
+ </extension>
+
</plugin>
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java 2010-12-30
15:36:42 UTC (rev 27829)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java 2010-12-30
15:36:47 UTC (rev 27830)
@@ -148,7 +148,6 @@
public static String Refactoring_JSF_2_Changes_Rename_Composite_Component;
public static String Refactoring_JSF_2_Rename_Composite_Component;
public static String Refactoring_JSF_2_Rename_Attr_Ref_Decl;
- public static String JSFNatureDescription;
static {
// load message values from bundle file
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties 2010-12-30
15:36:42 UTC (rev 27829)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties 2010-12-30
15:36:47 UTC (rev 27830)
@@ -125,4 +125,3 @@
Refactoring_JSF_2_Changes_Rename_Composite_Component=Changes to rename composite
component
Refactoring_JSF_2_Rename_Composite_Component=Rename composite component
Refactoring_JSF_2_Rename_Attr_Ref_Decl=Rename composite attribute reference in
declaration
-JSFNatureDescription=JSF
\ No newline at end of file
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/JSFNature.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/JSFNature.java 2010-12-30
15:36:42 UTC (rev 27829)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/JSFNature.java 2010-12-30
15:36:47 UTC (rev 27830)
@@ -12,14 +12,11 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
-
import org.jboss.tools.common.model.project.IAutoLoad;
import org.jboss.tools.common.model.project.ModelNature;
import org.jboss.tools.jsf.JSFModelPlugin;
-import org.jboss.tools.jsf.messages.JSFUIMessages;
-import org.jboss.tools.jst.web.kb.internal.IKBBuilderRequiredNature;
-public class JSFNature extends ModelNature implements IKBBuilderRequiredNature {
+public class JSFNature extends ModelNature {
public static final String NATURE_ID = JSFModelPlugin.PLUGIN_ID +
".jsfnature";
public static final String NATURE_NICK =
"org.jboss.tools.struts.strutsnature";
static String BUILDER_ID =
"org.jboss.tools.common.verification.verifybuilder";
@@ -52,12 +49,4 @@
removeFromBuildSpec(BUILDER_ID);
super.deconfigure();
}
-
- public boolean isKBBuilderRequired() {
- return true;
- }
-
- public String getNatureDescription() {
- return JSFUIMessages.JSFNatureDescription;
- }
}
Show replies by date