@@ -96,6 +96,7 @@ private void init() {
96
96
runPhpUnitOnlyCheckBox .setSelected (PhpUnitPreferences .getRunPhpUnitOnly (phpModule ));
97
97
runTestUsingUnitCheckBox .setSelected (PhpUnitPreferences .getRunAllTestFiles (phpModule ));
98
98
askForTestGroupsCheckBox .setSelected (PhpUnitPreferences .getAskForTestGroups (phpModule ));
99
+ isRelativePathEnabled .setSelected (PhpUnitPreferences .isRelativePathEnabled (phpModule ));
99
100
initPhpUnitVersion ();
100
101
101
102
enableFile (bootstrapCheckBox .isSelected (), bootstrapLabel , bootstrapTextField , bootstrapGenerateButton , bootstrapBrowseButton , bootstrapForCreateTestsCheckBox );
@@ -180,6 +181,7 @@ void storeData() {
180
181
PhpUnitPreferences .setRunPhpUnitOnly (phpModule , runPhpUnitOnlyCheckBox .isSelected ());
181
182
PhpUnitPreferences .setRunAllTestFiles (phpModule , runTestUsingUnitCheckBox .isSelected ());
182
183
PhpUnitPreferences .setAskForTestGroups (phpModule , askForTestGroupsCheckBox .isSelected ());
184
+ PhpUnitPreferences .setRelativePathEnabled (phpModule , isRelativePathEnabled .isSelected ());
183
185
}
184
186
185
187
private void initFile (boolean enabled , String file , JCheckBox checkBox , JTextField textField ) {
@@ -329,6 +331,7 @@ private void initComponents() {
329
331
askForTestGroupsCheckBox = new JCheckBox ();
330
332
versionLabel = new JLabel ();
331
333
versionLineLabel = new JLabel ();
334
+ isRelativePathEnabled = new JCheckBox ();
332
335
333
336
bootstrapLabel .setLabelFor (bootstrapTextField );
334
337
Mnemonics .setLocalizedText (bootstrapLabel , NbBundle .getMessage (CustomizerPhpUnit .class , "CustomizerPhpUnit.bootstrapLabel.text" )); // NOI18N
@@ -414,6 +417,8 @@ public void actionPerformed(ActionEvent evt) {
414
417
415
418
Mnemonics .setLocalizedText (versionLineLabel , "VERSION" ); // NOI18N
416
419
420
+ Mnemonics .setLocalizedText (isRelativePathEnabled , NbBundle .getMessage (CustomizerPhpUnit .class , "CustomizerPhpUnit.isRelativePathEnabled.text" )); // NOI18N
421
+
417
422
GroupLayout layout = new GroupLayout (this );
418
423
this .setLayout (layout );
419
424
layout .setHorizontalGroup (layout .createParallelGroup (Alignment .LEADING )
@@ -453,7 +458,7 @@ public void actionPerformed(ActionEvent evt) {
453
458
.addGroup (layout .createSequentialGroup ()
454
459
.addComponent (scriptLabel )
455
460
.addPreferredGap (ComponentPlacement .RELATED )
456
- .addComponent (scriptTextField )
461
+ .addComponent (scriptTextField , GroupLayout . DEFAULT_SIZE , 323 , Short . MAX_VALUE )
457
462
.addPreferredGap (ComponentPlacement .RELATED )
458
463
.addComponent (scriptBrowseButton ))))
459
464
.addGroup (layout .createSequentialGroup ()
@@ -464,7 +469,8 @@ public void actionPerformed(ActionEvent evt) {
464
469
.addComponent (runTestUsingUnitCheckBox )
465
470
.addComponent (askForTestGroupsCheckBox )
466
471
.addComponent (scriptCheckBox )
467
- .addComponent (runPhpUnitOnlyCheckBox ))
472
+ .addComponent (runPhpUnitOnlyCheckBox )
473
+ .addComponent (isRelativePathEnabled ))
468
474
.addContainerGap (GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE ))
469
475
.addGroup (layout .createSequentialGroup ()
470
476
.addComponent (versionLabel )
@@ -506,12 +512,16 @@ public void actionPerformed(ActionEvent evt) {
506
512
.addComponent (suiteInfoLabel )
507
513
.addPreferredGap (ComponentPlacement .UNRELATED )
508
514
.addComponent (scriptCheckBox )
509
- .addPreferredGap (ComponentPlacement .RELATED )
510
- .addGroup (layout .createParallelGroup (Alignment .BASELINE )
511
- .addComponent (scriptLabel )
512
- .addComponent (scriptTextField , GroupLayout .PREFERRED_SIZE , GroupLayout .DEFAULT_SIZE , GroupLayout .PREFERRED_SIZE )
513
- .addComponent (scriptBrowseButton ))
514
- .addPreferredGap (ComponentPlacement .UNRELATED )
515
+ .addGroup (layout .createParallelGroup (Alignment .LEADING , false )
516
+ .addGroup (layout .createParallelGroup (Alignment .BASELINE )
517
+ .addComponent (scriptTextField , GroupLayout .PREFERRED_SIZE , GroupLayout .DEFAULT_SIZE , GroupLayout .PREFERRED_SIZE )
518
+ .addComponent (scriptBrowseButton ))
519
+ .addGroup (layout .createSequentialGroup ()
520
+ .addGap (3 , 3 , 3 )
521
+ .addComponent (scriptLabel , GroupLayout .DEFAULT_SIZE , GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE )))
522
+ .addGap (26 , 26 , 26 )
523
+ .addComponent (isRelativePathEnabled )
524
+ .addGap (18 , 18 , 18 )
515
525
.addComponent (runPhpUnitOnlyCheckBox )
516
526
.addPreferredGap (ComponentPlacement .RELATED )
517
527
.addComponent (runTestUsingUnitCheckBox )
@@ -645,6 +655,7 @@ private void scriptBrowseButtonActionPerformed(ActionEvent evt) {//GEN-FIRST:eve
645
655
private JButton configurationGenerateButton ;
646
656
private JLabel configurationLabel ;
647
657
private JTextField configurationTextField ;
658
+ private JCheckBox isRelativePathEnabled ;
648
659
private JCheckBox runPhpUnitOnlyCheckBox ;
649
660
private JCheckBox runTestUsingUnitCheckBox ;
650
661
private JButton scriptBrowseButton ;
0 commit comments