Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Collier2017-11-23 22:10:42 +0000
committerJohn Collier2017-11-23 22:15:32 +0000
commit501464a3c699bea9bc75afd2d632d5bf5ce31ff9 (patch)
treeae1ce4f8fe553cf53ee88e05578dd816a577a686 /plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui
parent10fb4227bea7309e0fa49d377f8c79f36e23a151 (diff)
downloadwebtools.javaee-501464a3c699bea9bc75afd2d632d5bf5ce31ff9.tar.gz
webtools.javaee-501464a3c699bea9bc75afd2d632d5bf5ce31ff9.tar.xz
webtools.javaee-501464a3c699bea9bc75afd2d632d5bf5ce31ff9.zip
Bug 527694: Allows for Web Fragment 4.0 Projects to be created.
This patch allows for Web Fragment 4.0 projects to be created. Additionally, it updates the default WebAppVersion type in the model code from 3.1 to 4.0. Signed-off-by: John Collier <John.J.Collier@ibm.com>
Diffstat (limited to 'plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui')
-rw-r--r--plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/project/facet/WebFragmentProjectFirstPage.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/project/facet/WebFragmentProjectFirstPage.java b/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/project/facet/WebFragmentProjectFirstPage.java
index 38ba6b1a3..6b7cfd8a9 100644
--- a/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/project/facet/WebFragmentProjectFirstPage.java
+++ b/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/project/facet/WebFragmentProjectFirstPage.java
@@ -101,7 +101,11 @@ public class WebFragmentProjectFirstPage extends J2EEComponentFacetCreationWizar
else {
facets.add(primaryFacetVersion);
- if(primaryFacetVersion == WebFacetUtils.WEBFRAGMENT_31)
+ if(primaryFacetVersion == WebFacetUtils.WEBFRAGMENT_40)
+ {
+ facets.add(JavaFacet.VERSION_1_8);
+ }
+ else if(primaryFacetVersion == WebFacetUtils.WEBFRAGMENT_31)
{
facets.add(JavaFacet.VERSION_1_7);
}

Back to the top