|
Lines 14-20
Link Here
|
| 14 |
import java.util.HashSet; |
14 |
import java.util.HashSet; |
| 15 |
import java.util.Set; |
15 |
import java.util.Set; |
| 16 |
|
16 |
|
| 17 |
import org.eclipse.jst.common.project.facet.JavaFacetUtils; |
17 |
import org.eclipse.jst.common.project.facet.core.JavaFacet; |
| 18 |
import org.eclipse.jst.ejb.ui.internal.util.EJBUIMessages; |
18 |
import org.eclipse.jst.ejb.ui.internal.util.EJBUIMessages; |
| 19 |
import org.eclipse.jst.j2ee.internal.actions.IJ2EEUIContextIds; |
19 |
import org.eclipse.jst.j2ee.internal.actions.IJ2EEUIContextIds; |
| 20 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEUIPlugin; |
20 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEUIPlugin; |
|
Lines 54-75
Link Here
|
| 54 |
else { |
54 |
else { |
| 55 |
facets.add(primaryFacetVersion); |
55 |
facets.add(primaryFacetVersion); |
| 56 |
|
56 |
|
| 57 |
if(primaryFacetVersion == IJ2EEFacetConstants.EJB_31) |
57 |
if(primaryFacetVersion == IJ2EEFacetConstants.EJB_32) |
| 58 |
{ |
58 |
{ |
| 59 |
facets.add(JavaFacetUtils.JAVA_60); |
59 |
facets.add(JavaFacet.VERSION_1_7); |
|
|
60 |
} |
| 61 |
else if(primaryFacetVersion == IJ2EEFacetConstants.EJB_31) |
| 62 |
{ |
| 63 |
facets.add(JavaFacet.VERSION_1_6); |
| 60 |
} |
64 |
} |
| 61 |
else if(primaryFacetVersion == IJ2EEFacetConstants.EJB_30) |
65 |
else if(primaryFacetVersion == IJ2EEFacetConstants.EJB_30) |
| 62 |
{ |
66 |
{ |
| 63 |
facets.add(JavaFacetUtils.JAVA_50); |
67 |
facets.add(JavaFacet.VERSION_1_5); |
| 64 |
} |
68 |
} |
| 65 |
else if(primaryFacetVersion == IJ2EEFacetConstants.EJB_21) |
69 |
else if(primaryFacetVersion == IJ2EEFacetConstants.EJB_21) |
| 66 |
{ |
70 |
{ |
| 67 |
facets.add(JavaFacetUtils.JAVA_14); |
71 |
facets.add(JavaFacet.VERSION_1_4); |
| 68 |
} |
72 |
} |
| 69 |
else if(primaryFacetVersion == IJ2EEFacetConstants.EJB_20 || |
73 |
else if(primaryFacetVersion == IJ2EEFacetConstants.EJB_20 || |
| 70 |
primaryFacetVersion == IJ2EEFacetConstants.EJB_11) |
74 |
primaryFacetVersion == IJ2EEFacetConstants.EJB_11) |
| 71 |
{ |
75 |
{ |
| 72 |
facets.add(JavaFacetUtils.JAVA_13); |
76 |
facets.add(JavaFacet.VERSION_1_3); |
| 73 |
} |
77 |
} |
| 74 |
} |
78 |
} |
| 75 |
return Collections.unmodifiableSet( facets ); |
79 |
return Collections.unmodifiableSet( facets ); |