|
Lines 35-40
Link Here
|
| 35 |
|
35 |
|
| 36 |
case J2EEVersionConstants.SERVLET_2_5: |
36 |
case J2EEVersionConstants.SERVLET_2_5: |
| 37 |
return J2EEVersionConstants.VERSION_2_5_TEXT; |
37 |
return J2EEVersionConstants.VERSION_2_5_TEXT; |
|
|
38 |
|
| 39 |
case J2EEVersionConstants.SERVLET_3_0: |
| 40 |
return J2EEVersionConstants.VERSION_3_0_TEXT; |
| 38 |
} |
41 |
} |
| 39 |
return ""; //$NON-NLS-1$ |
42 |
return ""; //$NON-NLS-1$ |
| 40 |
|
43 |
|
|
Lines 57-62
Link Here
|
| 57 |
|
60 |
|
| 58 |
case J2EEVersionConstants.EJB_3_0_ID: |
61 |
case J2EEVersionConstants.EJB_3_0_ID: |
| 59 |
return J2EEVersionConstants.VERSION_3_0_TEXT; |
62 |
return J2EEVersionConstants.VERSION_3_0_TEXT; |
|
|
63 |
|
| 64 |
case J2EEVersionConstants.EJB_3_1_ID: |
| 65 |
return J2EEVersionConstants.VERSION_3_1_TEXT; |
| 60 |
} |
66 |
} |
| 61 |
return ""; //$NON-NLS-1$ |
67 |
return ""; //$NON-NLS-1$ |
| 62 |
} |
68 |
} |
|
Lines 69-74
Link Here
|
| 69 |
case J2EEVersionConstants.JCA_1_5_ID: |
75 |
case J2EEVersionConstants.JCA_1_5_ID: |
| 70 |
return J2EEVersionConstants.VERSION_1_5_TEXT; |
76 |
return J2EEVersionConstants.VERSION_1_5_TEXT; |
| 71 |
|
77 |
|
|
|
78 |
case J2EEVersionConstants.JCA_1_6_ID: |
| 79 |
return J2EEVersionConstants.VERSION_1_6_TEXT; |
| 80 |
|
| 72 |
} |
81 |
} |
| 73 |
return ""; //$NON-NLS-1$ |
82 |
return ""; //$NON-NLS-1$ |
| 74 |
} |
83 |
} |
|
Lines 87-92
Link Here
|
| 87 |
case J2EEVersionConstants.JEE_5_0_ID: |
96 |
case J2EEVersionConstants.JEE_5_0_ID: |
| 88 |
return J2EEVersionConstants.VERSION_5_0_TEXT; |
97 |
return J2EEVersionConstants.VERSION_5_0_TEXT; |
| 89 |
|
98 |
|
|
|
99 |
case J2EEVersionConstants.JEE_6_0_ID: |
| 100 |
return J2EEVersionConstants.VERSION_6_0_TEXT; |
| 101 |
|
| 90 |
} |
102 |
} |
| 91 |
return "";//$NON-NLS-1$ |
103 |
return "";//$NON-NLS-1$ |
| 92 |
} |
104 |
} |
|
Lines 100-105
Link Here
|
| 100 |
return J2EEVersionConstants.J2EE_1_4_ID; |
112 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 101 |
if (version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) |
113 |
if (version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) |
| 102 |
return J2EEVersionConstants.JEE_5_0_ID; |
114 |
return J2EEVersionConstants.JEE_5_0_ID; |
|
|
115 |
if (version.equals(J2EEVersionConstants.VERSION_6_0_TEXT)) |
| 116 |
return J2EEVersionConstants.JEE_6_0_ID; |
| 103 |
// default |
117 |
// default |
| 104 |
return J2EEVersionConstants.JEE_5_0_ID; |
118 |
return J2EEVersionConstants.JEE_5_0_ID; |
| 105 |
} |
119 |
} |
|
Lines 113-118
Link Here
|
| 113 |
return J2EEVersionConstants.J2EE_1_4_ID; |
127 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 114 |
if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
128 |
if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
| 115 |
return J2EEVersionConstants.JEE_5_0_ID; |
129 |
return J2EEVersionConstants.JEE_5_0_ID; |
|
|
130 |
if (version.equals(J2EEVersionConstants.VERSION_3_1_TEXT)) |
| 131 |
return J2EEVersionConstants.JEE_6_0_ID; |
| 116 |
// default |
132 |
// default |
| 117 |
return J2EEVersionConstants.JEE_5_0_ID; |
133 |
return J2EEVersionConstants.JEE_5_0_ID; |
| 118 |
} |
134 |
} |
|
Lines 126-131
Link Here
|
| 126 |
return J2EEVersionConstants.J2EE_1_4_ID; |
142 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 127 |
if (version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)) |
143 |
if (version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)) |
| 128 |
return J2EEVersionConstants.JEE_5_0_ID; |
144 |
return J2EEVersionConstants.JEE_5_0_ID; |
|
|
145 |
if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
| 146 |
return J2EEVersionConstants.JEE_6_0_ID; |
| 129 |
// default |
147 |
// default |
| 130 |
return J2EEVersionConstants.J2EE_1_4_ID; |
148 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 131 |
} |
149 |
} |
|
Lines 135-140
Link Here
|
| 135 |
return J2EEVersionConstants.J2EE_1_3_ID; |
153 |
return J2EEVersionConstants.J2EE_1_3_ID; |
| 136 |
if (version.equals(J2EEVersionConstants.VERSION_1_5_TEXT)) |
154 |
if (version.equals(J2EEVersionConstants.VERSION_1_5_TEXT)) |
| 137 |
return J2EEVersionConstants.J2EE_1_4_ID; |
155 |
return J2EEVersionConstants.J2EE_1_4_ID; |
|
|
156 |
if (version.equals(J2EEVersionConstants.VERSION_1_6_TEXT)) |
| 157 |
return J2EEVersionConstants.JEE_6_0_ID; |
| 138 |
// default |
158 |
// default |
| 139 |
return J2EEVersionConstants.J2EE_1_4_ID; |
159 |
return J2EEVersionConstants.J2EE_1_4_ID; |
| 140 |
} |
160 |
} |
|
Lines 149-154
Link Here
|
| 149 |
return J2EEVersionConstants.EJB_2_1_ID; |
169 |
return J2EEVersionConstants.EJB_2_1_ID; |
| 150 |
case J2EEVersionConstants.JEE_5_0_ID: |
170 |
case J2EEVersionConstants.JEE_5_0_ID: |
| 151 |
return J2EEVersionConstants.EJB_3_0_ID; |
171 |
return J2EEVersionConstants.EJB_3_0_ID; |
|
|
172 |
case J2EEVersionConstants.JEE_6_0_ID: |
| 173 |
return J2EEVersionConstants.EJB_3_1_ID; |
| 152 |
} |
174 |
} |
| 153 |
// default |
175 |
// default |
| 154 |
return J2EEVersionConstants.EJB_3_0_ID; |
176 |
return J2EEVersionConstants.EJB_3_0_ID; |
|
Lines 164-169
Link Here
|
| 164 |
return J2EEVersionConstants.WEB_2_4_ID; |
186 |
return J2EEVersionConstants.WEB_2_4_ID; |
| 165 |
case J2EEVersionConstants.JEE_5_0_ID: |
187 |
case J2EEVersionConstants.JEE_5_0_ID: |
| 166 |
return J2EEVersionConstants.WEB_2_5_ID; |
188 |
return J2EEVersionConstants.WEB_2_5_ID; |
|
|
189 |
case J2EEVersionConstants.JEE_6_0_ID: |
| 190 |
return J2EEVersionConstants.WEB_3_0_ID; |
| 167 |
} |
191 |
} |
| 168 |
// default |
192 |
// default |
| 169 |
return J2EEVersionConstants.WEB_2_5_ID; |
193 |
return J2EEVersionConstants.WEB_2_5_ID; |
|
Lines 174-180
Link Here
|
| 174 |
case J2EEVersionConstants.J2EE_1_3_ID: |
198 |
case J2EEVersionConstants.J2EE_1_3_ID: |
| 175 |
return J2EEVersionConstants.JCA_1_0_ID; |
199 |
return J2EEVersionConstants.JCA_1_0_ID; |
| 176 |
case J2EEVersionConstants.J2EE_1_4_ID: |
200 |
case J2EEVersionConstants.J2EE_1_4_ID: |
|
|
201 |
case J2EEVersionConstants.JEE_5_0_ID: |
| 177 |
return J2EEVersionConstants.JCA_1_5_ID; |
202 |
return J2EEVersionConstants.JCA_1_5_ID; |
|
|
203 |
case J2EEVersionConstants.JEE_6_0_ID: |
| 204 |
return J2EEVersionConstants.JCA_1_6_ID; |
| 178 |
} |
205 |
} |
| 179 |
// default |
206 |
// default |
| 180 |
return J2EEVersionConstants.JCA_1_5_ID; |
207 |
return J2EEVersionConstants.JCA_1_5_ID; |
|
Lines 220-225
Link Here
|
| 220 |
else if (version.equals(J2EEVersionConstants.VERSION_1_5_TEXT)) |
247 |
else if (version.equals(J2EEVersionConstants.VERSION_1_5_TEXT)) |
| 221 |
nVersion = J2EEVersionConstants.VERSION_1_5; |
248 |
nVersion = J2EEVersionConstants.VERSION_1_5; |
| 222 |
|
249 |
|
|
|
250 |
else if (version.equals(J2EEVersionConstants.VERSION_1_6_TEXT)) |
| 251 |
nVersion = J2EEVersionConstants.VERSION_1_6; |
| 252 |
|
| 223 |
else if (version.equals(J2EEVersionConstants.VERSION_2_0_TEXT)) |
253 |
else if (version.equals(J2EEVersionConstants.VERSION_2_0_TEXT)) |
| 224 |
nVersion = J2EEVersionConstants.VERSION_2_0; |
254 |
nVersion = J2EEVersionConstants.VERSION_2_0; |
| 225 |
|
255 |
|
|
Lines 236-248
Link Here
|
| 236 |
nVersion = J2EEVersionConstants.VERSION_2_4; |
266 |
nVersion = J2EEVersionConstants.VERSION_2_4; |
| 237 |
|
267 |
|
| 238 |
else if (version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)) |
268 |
else if (version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)) |
| 239 |
nVersion = J2EEVersionConstants.VERSION_2_5; |
269 |
nVersion = J2EEVersionConstants.VERSION_2_5; |
| 240 |
|
|
|
| 241 |
else if (version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) |
| 242 |
nVersion = J2EEVersionConstants.VERSION_5_0; |
| 243 |
|
270 |
|
| 244 |
else if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
271 |
else if (version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)) |
| 245 |
nVersion = J2EEVersionConstants.VERSION_3_0; |
272 |
nVersion = J2EEVersionConstants.VERSION_3_0; |
|
|
273 |
|
| 274 |
else if (version.equals(J2EEVersionConstants.VERSION_3_1_TEXT)) |
| 275 |
nVersion = J2EEVersionConstants.VERSION_3_1; |
| 276 |
|
| 277 |
else if (version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) |
| 278 |
nVersion = J2EEVersionConstants.VERSION_5_0; |
| 279 |
|
| 280 |
else if (version.equals(J2EEVersionConstants.VERSION_6_0_TEXT)) |
| 281 |
nVersion = J2EEVersionConstants.VERSION_6_0; |
| 246 |
|
282 |
|
| 247 |
return nVersion; |
283 |
return nVersion; |
| 248 |
} |
284 |
} |
|
Lines 267-272
Link Here
|
| 267 |
else if (version == J2EEVersionConstants.VERSION_1_5) |
303 |
else if (version == J2EEVersionConstants.VERSION_1_5) |
| 268 |
nVersion = J2EEVersionConstants.VERSION_1_5_TEXT; |
304 |
nVersion = J2EEVersionConstants.VERSION_1_5_TEXT; |
| 269 |
|
305 |
|
|
|
306 |
else if (version == J2EEVersionConstants.VERSION_1_6) |
| 307 |
nVersion = J2EEVersionConstants.VERSION_1_6_TEXT; |
| 308 |
|
| 270 |
else if (version == J2EEVersionConstants.VERSION_2_0) |
309 |
else if (version == J2EEVersionConstants.VERSION_2_0) |
| 271 |
nVersion = J2EEVersionConstants.VERSION_2_0_TEXT; |
310 |
nVersion = J2EEVersionConstants.VERSION_2_0_TEXT; |
| 272 |
|
311 |
|
|
Lines 286-295
Link Here
|
| 286 |
nVersion = J2EEVersionConstants.VERSION_2_5_TEXT; |
325 |
nVersion = J2EEVersionConstants.VERSION_2_5_TEXT; |
| 287 |
|
326 |
|
| 288 |
else if (version == J2EEVersionConstants.VERSION_3_0) |
327 |
else if (version == J2EEVersionConstants.VERSION_3_0) |
| 289 |
nVersion = J2EEVersionConstants.VERSION_3_0_TEXT; |
328 |
nVersion = J2EEVersionConstants.VERSION_3_0_TEXT; |
|
|
329 |
|
| 330 |
else if (version == J2EEVersionConstants.VERSION_3_1) |
| 331 |
nVersion = J2EEVersionConstants.VERSION_3_1_TEXT; |
| 290 |
|
332 |
|
| 291 |
else if (version == J2EEVersionConstants.VERSION_5_0) |
333 |
else if (version == J2EEVersionConstants.VERSION_5_0) |
| 292 |
nVersion = J2EEVersionConstants.VERSION_5_0_TEXT; |
334 |
nVersion = J2EEVersionConstants.VERSION_5_0_TEXT; |
|
|
335 |
|
| 336 |
else if (version == J2EEVersionConstants.VERSION_6_0) |
| 337 |
nVersion = J2EEVersionConstants.VERSION_6_0_TEXT; |
| 293 |
|
338 |
|
| 294 |
return nVersion; |
339 |
return nVersion; |
| 295 |
} |
340 |
} |