|
Lines 41-46
Link Here
|
| 41 |
|
41 |
|
| 42 |
case J2EEVersionConstants.SERVLET_2_5: |
42 |
case J2EEVersionConstants.SERVLET_2_5: |
| 43 |
return J2EEVersionConstants.VERSION_2_5_TEXT; |
43 |
return J2EEVersionConstants.VERSION_2_5_TEXT; |
|
|
44 |
|
| 45 |
case J2EEVersionConstants.SERVLET_3_0: |
| 46 |
return J2EEVersionConstants.VERSION_3_0_TEXT; |
| 44 |
} |
47 |
} |
| 45 |
return ""; //$NON-NLS-1$ |
48 |
return ""; //$NON-NLS-1$ |
| 46 |
|
49 |
|
|
Lines 63-68
Link Here
|
| 63 |
|
66 |
|
| 64 |
case J2EEVersionConstants.EJB_3_0_ID: |
67 |
case J2EEVersionConstants.EJB_3_0_ID: |
| 65 |
return J2EEVersionConstants.VERSION_3_0_TEXT; |
68 |
return J2EEVersionConstants.VERSION_3_0_TEXT; |
|
|
69 |
|
| 70 |
case J2EEVersionConstants.EJB_3_1_ID: |
| 71 |
return J2EEVersionConstants.VERSION_3_1_TEXT; |
| 66 |
} |
72 |
} |
| 67 |
return ""; //$NON-NLS-1$ |
73 |
return ""; //$NON-NLS-1$ |
| 68 |
} |
74 |
} |
|
Lines 75-80
Link Here
|
| 75 |
case J2EEVersionConstants.JCA_1_5_ID: |
81 |
case J2EEVersionConstants.JCA_1_5_ID: |
| 76 |
return J2EEVersionConstants.VERSION_1_5_TEXT; |
82 |
return J2EEVersionConstants.VERSION_1_5_TEXT; |
| 77 |
|
83 |
|
|
|
84 |
case J2EEVersionConstants.JCA_1_6_ID: |
| 85 |
return J2EEVersionConstants.VERSION_1_6_TEXT; |
| 86 |
|
| 78 |
} |
87 |
} |
| 79 |
return ""; //$NON-NLS-1$ |
88 |
return ""; //$NON-NLS-1$ |
| 80 |
} |
89 |
} |
|
Lines 93-98
Link Here
|
| 93 |
case J2EEVersionConstants.JEE_5_0_ID: |
102 |
case J2EEVersionConstants.JEE_5_0_ID: |
| 94 |
return J2EEVersionConstants.VERSION_5_0_TEXT; |
103 |
return J2EEVersionConstants.VERSION_5_0_TEXT; |
| 95 |
|
104 |
|
|
|
105 |
case J2EEVersionConstants.JEE_6_0_ID: |
| 106 |
return J2EEVersionConstants.VERSION_6_0_TEXT; |
| 107 |
|
| 96 |
} |
108 |
} |
| 97 |
return "";//$NON-NLS-1$ |
109 |
return "";//$NON-NLS-1$ |
| 98 |
} |
110 |
} |
|
Lines 106-111
Link Here
|
| 106 |
return J2EEVersionConstants.J2EE_1_4_ID; |
118 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 107 |
if (version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) |
119 |
if (version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) |
| 108 |
return J2EEVersionConstants.JEE_5_0_ID; |
120 |
return J2EEVersionConstants.JEE_5_0_ID; |
|
|
121 |
if (version.equals(J2EEVersionConstants.VERSION_6_0_TEXT)) |
| 122 |
return J2EEVersionConstants.JEE_6_0_ID; |
| 109 |
// default |
123 |
// default |
| 110 |
return J2EEVersionConstants.JEE_5_0_ID; |
124 |
return J2EEVersionConstants.JEE_5_0_ID; |
| 111 |
} |
125 |
} |
|
Lines 119-124
Link Here
|
| 119 |
return J2EEVersionConstants.J2EE_1_4_ID; |
133 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 120 |
if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
134 |
if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
| 121 |
return J2EEVersionConstants.JEE_5_0_ID; |
135 |
return J2EEVersionConstants.JEE_5_0_ID; |
|
|
136 |
if (version.equals(J2EEVersionConstants.VERSION_3_1_TEXT)) |
| 137 |
return J2EEVersionConstants.JEE_6_0_ID; |
| 122 |
// default |
138 |
// default |
| 123 |
return J2EEVersionConstants.JEE_5_0_ID; |
139 |
return J2EEVersionConstants.JEE_5_0_ID; |
| 124 |
} |
140 |
} |
|
Lines 132-137
Link Here
|
| 132 |
return J2EEVersionConstants.J2EE_1_4_ID; |
148 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 133 |
if (version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)) |
149 |
if (version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)) |
| 134 |
return J2EEVersionConstants.JEE_5_0_ID; |
150 |
return J2EEVersionConstants.JEE_5_0_ID; |
|
|
151 |
if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
| 152 |
return J2EEVersionConstants.JEE_6_0_ID; |
| 135 |
// default |
153 |
// default |
| 136 |
return J2EEVersionConstants.J2EE_1_4_ID; |
154 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 137 |
} |
155 |
} |
|
Lines 141-146
Link Here
|
| 141 |
return J2EEVersionConstants.J2EE_1_3_ID; |
159 |
return J2EEVersionConstants.J2EE_1_3_ID; |
| 142 |
if (version.equals(J2EEVersionConstants.VERSION_1_5_TEXT)) |
160 |
if (version.equals(J2EEVersionConstants.VERSION_1_5_TEXT)) |
| 143 |
return J2EEVersionConstants.J2EE_1_4_ID; |
161 |
return J2EEVersionConstants.J2EE_1_4_ID; |
|
|
162 |
if (version.equals(J2EEVersionConstants.VERSION_1_6_TEXT)) |
| 163 |
return J2EEVersionConstants.JEE_6_0_ID; |
| 144 |
// default |
164 |
// default |
| 145 |
return J2EEVersionConstants.J2EE_1_4_ID; |
165 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 146 |
} |
166 |
} |
|
Lines 155-160
Link Here
|
| 155 |
return J2EEVersionConstants.EJB_2_1_ID; |
175 |
return J2EEVersionConstants.EJB_2_1_ID; |
| 156 |
case J2EEVersionConstants.JEE_5_0_ID: |
176 |
case J2EEVersionConstants.JEE_5_0_ID: |
| 157 |
return J2EEVersionConstants.EJB_3_0_ID; |
177 |
return J2EEVersionConstants.EJB_3_0_ID; |
|
|
178 |
case J2EEVersionConstants.JEE_6_0_ID: |
| 179 |
return J2EEVersionConstants.EJB_3_1_ID; |
| 158 |
} |
180 |
} |
| 159 |
// default |
181 |
// default |
| 160 |
return J2EEVersionConstants.EJB_3_0_ID; |
182 |
return J2EEVersionConstants.EJB_3_0_ID; |
|
Lines 170-175
Link Here
|
| 170 |
return J2EEVersionConstants.WEB_2_4_ID; |
192 |
return J2EEVersionConstants.WEB_2_4_ID; |
| 171 |
case J2EEVersionConstants.JEE_5_0_ID: |
193 |
case J2EEVersionConstants.JEE_5_0_ID: |
| 172 |
return J2EEVersionConstants.WEB_2_5_ID; |
194 |
return J2EEVersionConstants.WEB_2_5_ID; |
|
|
195 |
case J2EEVersionConstants.JEE_6_0_ID: |
| 196 |
return J2EEVersionConstants.WEB_3_0_ID; |
| 173 |
} |
197 |
} |
| 174 |
// default |
198 |
// default |
| 175 |
return J2EEVersionConstants.WEB_2_5_ID; |
199 |
return J2EEVersionConstants.WEB_2_5_ID; |
|
Lines 180-186
Link Here
|
| 180 |
case J2EEVersionConstants.J2EE_1_3_ID: |
204 |
case J2EEVersionConstants.J2EE_1_3_ID: |
| 181 |
return J2EEVersionConstants.JCA_1_0_ID; |
205 |
return J2EEVersionConstants.JCA_1_0_ID; |
| 182 |
case J2EEVersionConstants.J2EE_1_4_ID: |
206 |
case J2EEVersionConstants.J2EE_1_4_ID: |
|
|
207 |
case J2EEVersionConstants.JEE_5_0_ID: |
| 183 |
return J2EEVersionConstants.JCA_1_5_ID; |
208 |
return J2EEVersionConstants.JCA_1_5_ID; |
|
|
209 |
case J2EEVersionConstants.JEE_6_0_ID: |
| 210 |
return J2EEVersionConstants.JCA_1_6_ID; |
| 184 |
} |
211 |
} |
| 185 |
// default |
212 |
// default |
| 186 |
return J2EEVersionConstants.JCA_1_5_ID; |
213 |
return J2EEVersionConstants.JCA_1_5_ID; |
|
Lines 226-231
Link Here
|
| 226 |
else if (version.equals(J2EEVersionConstants.VERSION_1_5_TEXT)) |
253 |
else if (version.equals(J2EEVersionConstants.VERSION_1_5_TEXT)) |
| 227 |
nVersion = J2EEVersionConstants.VERSION_1_5; |
254 |
nVersion = J2EEVersionConstants.VERSION_1_5; |
| 228 |
|
255 |
|
|
|
256 |
else if (version.equals(J2EEVersionConstants.VERSION_1_6_TEXT)) |
| 257 |
nVersion = J2EEVersionConstants.VERSION_1_6; |
| 258 |
|
| 229 |
else if (version.equals(J2EEVersionConstants.VERSION_2_0_TEXT)) |
259 |
else if (version.equals(J2EEVersionConstants.VERSION_2_0_TEXT)) |
| 230 |
nVersion = J2EEVersionConstants.VERSION_2_0; |
260 |
nVersion = J2EEVersionConstants.VERSION_2_0; |
| 231 |
|
261 |
|
|
Lines 242-254
Link Here
|
| 242 |
nVersion = J2EEVersionConstants.VERSION_2_4; |
272 |
nVersion = J2EEVersionConstants.VERSION_2_4; |
| 243 |
|
273 |
|
| 244 |
else if (version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)) |
274 |
else if (version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)) |
| 245 |
nVersion = J2EEVersionConstants.VERSION_2_5; |
275 |
nVersion = J2EEVersionConstants.VERSION_2_5; |
| 246 |
|
|
|
| 247 |
else if (version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) |
| 248 |
nVersion = J2EEVersionConstants.VERSION_5_0; |
| 249 |
|
276 |
|
| 250 |
else if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
277 |
else if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
| 251 |
nVersion = J2EEVersionConstants.VERSION_3_0; |
278 |
nVersion = J2EEVersionConstants.VERSION_3_0; |
|
|
279 |
|
| 280 |
else if (version.equals(J2EEVersionConstants.VERSION_3_1_TEXT)) |
| 281 |
nVersion = J2EEVersionConstants.VERSION_3_1; |
| 282 |
|
| 283 |
else if (version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) |
| 284 |
nVersion = J2EEVersionConstants.VERSION_5_0; |
| 285 |
|
| 286 |
else if (version.equals(J2EEVersionConstants.VERSION_6_0_TEXT)) |
| 287 |
nVersion = J2EEVersionConstants.VERSION_6_0; |
| 252 |
|
288 |
|
| 253 |
return nVersion; |
289 |
return nVersion; |
| 254 |
} |
290 |
} |
|
Lines 273-278
Link Here
|
| 273 |
else if (version == J2EEVersionConstants.VERSION_1_5) |
309 |
else if (version == J2EEVersionConstants.VERSION_1_5) |
| 274 |
nVersion = J2EEVersionConstants.VERSION_1_5_TEXT; |
310 |
nVersion = J2EEVersionConstants.VERSION_1_5_TEXT; |
| 275 |
|
311 |
|
|
|
312 |
else if (version == J2EEVersionConstants.VERSION_1_6) |
| 313 |
nVersion = J2EEVersionConstants.VERSION_1_6_TEXT; |
| 314 |
|
| 276 |
else if (version == J2EEVersionConstants.VERSION_2_0) |
315 |
else if (version == J2EEVersionConstants.VERSION_2_0) |
| 277 |
nVersion = J2EEVersionConstants.VERSION_2_0_TEXT; |
316 |
nVersion = J2EEVersionConstants.VERSION_2_0_TEXT; |
| 278 |
|
317 |
|
|
Lines 292-301
Link Here
|
| 292 |
nVersion = J2EEVersionConstants.VERSION_2_5_TEXT; |
331 |
nVersion = J2EEVersionConstants.VERSION_2_5_TEXT; |
| 293 |
|
332 |
|
| 294 |
else if (version == J2EEVersionConstants.VERSION_3_0) |
333 |
else if (version == J2EEVersionConstants.VERSION_3_0) |
| 295 |
nVersion = J2EEVersionConstants.VERSION_3_0_TEXT; |
334 |
nVersion = J2EEVersionConstants.VERSION_3_0_TEXT; |
|
|
335 |
|
| 336 |
else if (version == J2EEVersionConstants.VERSION_3_1) |
| 337 |
nVersion = J2EEVersionConstants.VERSION_3_1_TEXT; |
| 296 |
|
338 |
|
| 297 |
else if (version == J2EEVersionConstants.VERSION_5_0) |
339 |
else if (version == J2EEVersionConstants.VERSION_5_0) |
| 298 |
nVersion = J2EEVersionConstants.VERSION_5_0_TEXT; |
340 |
nVersion = J2EEVersionConstants.VERSION_5_0_TEXT; |
|
|
341 |
|
| 342 |
else if (version == J2EEVersionConstants.VERSION_6_0) |
| 343 |
nVersion = J2EEVersionConstants.VERSION_6_0_TEXT; |
| 299 |
|
344 |
|
| 300 |
return nVersion; |
345 |
return nVersion; |
| 301 |
} |
346 |
} |