Lines 169-174
Link Here
|
169 |
mainClassLabel1 = new javax.swing.JLabel(); |
169 |
mainClassLabel1 = new javax.swing.JLabel(); |
170 |
mainClassTextFieldWithinEar = new javax.swing.JTextField(); |
170 |
mainClassTextFieldWithinEar = new javax.swing.JTextField(); |
171 |
serverLibraryCheckbox = new javax.swing.JCheckBox(); |
171 |
serverLibraryCheckbox = new javax.swing.JCheckBox(); |
|
|
172 |
cdiCheckbox = new javax.swing.JCheckBox(); |
172 |
|
173 |
|
173 |
jLabelEnterprise.setLabelFor(jComboBoxEnterprise); |
174 |
jLabelEnterprise.setLabelFor(jComboBoxEnterprise); |
174 |
org.openide.awt.Mnemonics.setLocalizedText(jLabelEnterprise, NbBundle.getMessage(ProjectServerPanel.class, "LBL_NWP1_AddToEnterprise_Label")); // NOI18N |
175 |
org.openide.awt.Mnemonics.setLocalizedText(jLabelEnterprise, NbBundle.getMessage(ProjectServerPanel.class, "LBL_NWP1_AddToEnterprise_Label")); // NOI18N |
Lines 256-291
Link Here
|
256 |
} |
257 |
} |
257 |
}); |
258 |
}); |
258 |
|
259 |
|
|
|
260 |
cdiCheckbox.setSelected(true); |
261 |
org.openide.awt.Mnemonics.setLocalizedText(cdiCheckbox, org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "PanelSharabilityVisual.cdiCheckbox.text")); // NOI18N |
262 |
|
259 |
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); |
263 |
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); |
260 |
this.setLayout(layout); |
264 |
this.setLayout(layout); |
261 |
layout.setHorizontalGroup( |
265 |
layout.setHorizontalGroup( |
262 |
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
266 |
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
263 |
.add(layout.createSequentialGroup() |
267 |
.add(layout.createSequentialGroup() |
264 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
|
|
265 |
.add(jLabelContextPath) |
266 |
.add(serverInstanceLabel) |
267 |
.add(j2eeSpecLabel)) |
268 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
269 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
270 |
.add(layout.createSequentialGroup() |
271 |
.add(mainClassTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE) |
272 |
.add(74, 74, 74)) |
273 |
.add(layout.createSequentialGroup() |
274 |
.add(jTextFieldContextPath, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE) |
275 |
.add(74, 74, 74)) |
276 |
.add(layout.createSequentialGroup() |
277 |
.add(serverInstanceComboBox, 0, 350, Short.MAX_VALUE) |
278 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
279 |
.add(addServerButton)) |
280 |
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() |
281 |
.add(serverLibraryCheckbox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE) |
282 |
.add(74, 74, 74)) |
283 |
.add(layout.createSequentialGroup() |
284 |
.add(j2eeSpecComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) |
285 |
.addContainerGap()))) |
286 |
.add(layout.createSequentialGroup() |
287 |
.add(mainClassLabel) |
268 |
.add(mainClassLabel) |
288 |
.addContainerGap(463, Short.MAX_VALUE)) |
269 |
.addContainerGap(495, Short.MAX_VALUE)) |
289 |
.add(layout.createSequentialGroup() |
270 |
.add(layout.createSequentialGroup() |
290 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) |
271 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) |
291 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
272 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
Lines 295-310
Link Here
|
295 |
.add(mainClassLabel1)) |
276 |
.add(mainClassLabel1)) |
296 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
277 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
297 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
278 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
298 |
.add(jTextFieldEjbModuleName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE) |
279 |
.add(jTextFieldEjbModuleName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE) |
299 |
.add(jTextFieldWebAppName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE) |
280 |
.add(jTextFieldWebAppName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE) |
300 |
.add(jTextFieldCarName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE) |
281 |
.add(jTextFieldCarName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE) |
301 |
.add(mainClassTextFieldWithinEar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)) |
282 |
.add(mainClassTextFieldWithinEar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)) |
302 |
.add(74, 74, 74)) |
283 |
.add(74, 74, 74)) |
303 |
.add(warningPlaceHolderPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 541, Short.MAX_VALUE) |
284 |
.add(warningPlaceHolderPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 567, Short.MAX_VALUE) |
304 |
.add(layout.createSequentialGroup() |
285 |
.add(layout.createSequentialGroup() |
305 |
.add(jLabelEnterprise) |
286 |
.add(jLabelEnterprise) |
306 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
287 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
307 |
.add(jComboBoxEnterprise, 0, 342, Short.MAX_VALUE)) |
288 |
.add(jComboBoxEnterprise, 0, 366, Short.MAX_VALUE)) |
|
|
289 |
.add(layout.createSequentialGroup() |
290 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
291 |
.add(jLabelContextPath) |
292 |
.add(serverInstanceLabel) |
293 |
.add(j2eeSpecLabel)) |
294 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
295 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
296 |
.add(layout.createSequentialGroup() |
297 |
.add(cdiCheckbox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 441, Short.MAX_VALUE) |
298 |
.addContainerGap()) |
299 |
.add(layout.createSequentialGroup() |
300 |
.add(mainClassTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE) |
301 |
.add(74, 74, 74)) |
302 |
.add(layout.createSequentialGroup() |
303 |
.add(jTextFieldContextPath, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE) |
304 |
.add(74, 74, 74)) |
305 |
.add(layout.createSequentialGroup() |
306 |
.add(serverInstanceComboBox, 0, 398, Short.MAX_VALUE) |
307 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
308 |
.add(addServerButton)) |
309 |
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() |
310 |
.add(serverLibraryCheckbox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE) |
311 |
.add(74, 74, 74)) |
312 |
.add(j2eeSpecComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) |
308 |
); |
313 |
); |
309 |
layout.setVerticalGroup( |
314 |
layout.setVerticalGroup( |
310 |
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
315 |
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
Lines 325-330
Link Here
|
325 |
.add(j2eeSpecLabel) |
330 |
.add(j2eeSpecLabel) |
326 |
.add(j2eeSpecComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) |
331 |
.add(j2eeSpecComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) |
327 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
332 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
|
|
333 |
.add(cdiCheckbox) |
334 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
328 |
.add(warningPlaceHolderPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) |
335 |
.add(warningPlaceHolderPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) |
329 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
336 |
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
330 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) |
337 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) |
Lines 350-356
Link Here
|
350 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) |
357 |
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) |
351 |
.add(mainClassLabel1) |
358 |
.add(mainClassLabel1) |
352 |
.add(mainClassTextFieldWithinEar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) |
359 |
.add(mainClassTextFieldWithinEar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) |
353 |
.add(67, 67, 67)) |
360 |
.add(174, 174, 174)) |
354 |
); |
361 |
); |
355 |
|
362 |
|
356 |
jLabelEnterprise.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
363 |
jLabelEnterprise.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
Lines 379-384
Link Here
|
379 |
mainClassLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
386 |
mainClassLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
380 |
mainClassTextFieldWithinEar.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
387 |
mainClassTextFieldWithinEar.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
381 |
serverLibraryCheckbox.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
388 |
serverLibraryCheckbox.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
|
|
389 |
cdiCheckbox.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
382 |
|
390 |
|
383 |
getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
391 |
getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
384 |
getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
392 |
getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectServerPanel.class, "ACSD_ProjectServerPanel_NA")); // NOI18N |
Lines 572-577
Link Here
|
572 |
d.putProperty(ProjectServerWizardPanel.CREATE_WAR, Boolean.valueOf(createWARCheckBox.isVisible() ? createWARCheckBox.isSelected() : false)); |
580 |
d.putProperty(ProjectServerWizardPanel.CREATE_WAR, Boolean.valueOf(createWARCheckBox.isVisible() ? createWARCheckBox.isSelected() : false)); |
573 |
d.putProperty(ProjectServerWizardPanel.CREATE_JAR, Boolean.valueOf(createEjbCheckBox.isVisible() ? createEjbCheckBox.isSelected() : false)); |
581 |
d.putProperty(ProjectServerWizardPanel.CREATE_JAR, Boolean.valueOf(createEjbCheckBox.isVisible() ? createEjbCheckBox.isSelected() : false)); |
574 |
d.putProperty(ProjectServerWizardPanel.CREATE_CAR, Boolean.valueOf(createCarCheckBox.isVisible() ? createCarCheckBox.isSelected() : false)); |
582 |
d.putProperty(ProjectServerWizardPanel.CREATE_CAR, Boolean.valueOf(createCarCheckBox.isVisible() ? createCarCheckBox.isSelected() : false)); |
|
|
583 |
d.putProperty(ProjectServerWizardPanel.CDI, Boolean.valueOf(cdiCheckbox.isVisible() ? cdiCheckbox.isSelected() : false)); |
575 |
|
584 |
|
576 |
// #119052 |
585 |
// #119052 |
577 |
String sourceLevel = "1.5"; // NOI18N |
586 |
String sourceLevel = "1.5"; // NOI18N |
Lines 642-647
Link Here
|
642 |
|
651 |
|
643 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
652 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
644 |
private javax.swing.JButton addServerButton; |
653 |
private javax.swing.JButton addServerButton; |
|
|
654 |
private javax.swing.JCheckBox cdiCheckbox; |
645 |
private javax.swing.JCheckBox createCarCheckBox; |
655 |
private javax.swing.JCheckBox createCarCheckBox; |
646 |
private javax.swing.JCheckBox createEjbCheckBox; |
656 |
private javax.swing.JCheckBox createEjbCheckBox; |
647 |
private javax.swing.JCheckBox createWARCheckBox; |
657 |
private javax.swing.JCheckBox createWARCheckBox; |
Lines 769-776
Link Here
|
769 |
Profile j2ee = getSelectedJ2eeProfile(); |
779 |
Profile j2ee = getSelectedJ2eeProfile(); |
770 |
if (j2ee == null) { |
780 |
if (j2ee == null) { |
771 |
warningPlaceHolderPanel.setVisible(false); |
781 |
warningPlaceHolderPanel.setVisible(false); |
|
|
782 |
cdiCheckbox.setVisible(false); |
772 |
return; |
783 |
return; |
773 |
} |
784 |
} |
|
|
785 |
cdiCheckbox.setVisible(j2ee.equals(Profile.JAVA_EE_6_FULL) || j2ee.equals(Profile.JAVA_EE_6_WEB)); |
774 |
String warningType = J2eeVersionWarningPanel.findWarningType(j2ee); |
786 |
String warningType = J2eeVersionWarningPanel.findWarningType(j2ee); |
775 |
if (warningType == null && warningPanel == null) { |
787 |
if (warningType == null && warningPanel == null) { |
776 |
warningPlaceHolderPanel.setVisible(false); |
788 |
warningPlaceHolderPanel.setVisible(false); |