@@ -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 )
@@ -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 )
@@ -504,14 +510,16 @@ public void actionPerformed(ActionEvent evt) {
504
510
.addComponent (suiteBrowseButton ))
505
511
.addPreferredGap (ComponentPlacement .RELATED )
506
512
.addComponent (suiteInfoLabel )
507
- .addPreferredGap (ComponentPlacement .UNRELATED )
513
+ .addPreferredGap (ComponentPlacement .RELATED )
508
514
.addComponent (scriptCheckBox )
509
515
.addPreferredGap (ComponentPlacement .RELATED )
510
516
.addGroup (layout .createParallelGroup (Alignment .BASELINE )
511
517
.addComponent (scriptLabel )
512
518
.addComponent (scriptTextField , GroupLayout .PREFERRED_SIZE , GroupLayout .DEFAULT_SIZE , GroupLayout .PREFERRED_SIZE )
513
519
.addComponent (scriptBrowseButton ))
514
- .addPreferredGap (ComponentPlacement .UNRELATED )
520
+ .addPreferredGap (ComponentPlacement .RELATED )
521
+ .addComponent (isRelativePathEnabled )
522
+ .addPreferredGap (ComponentPlacement .RELATED )
515
523
.addComponent (runPhpUnitOnlyCheckBox )
516
524
.addPreferredGap (ComponentPlacement .RELATED )
517
525
.addComponent (runTestUsingUnitCheckBox )
@@ -645,6 +653,7 @@ private void scriptBrowseButtonActionPerformed(ActionEvent evt) {//GEN-FIRST:eve
645
653
private JButton configurationGenerateButton ;
646
654
private JLabel configurationLabel ;
647
655
private JTextField configurationTextField ;
656
+ private JCheckBox isRelativePathEnabled ;
648
657
private JCheckBox runPhpUnitOnlyCheckBox ;
649
658
private JCheckBox runTestUsingUnitCheckBox ;
650
659
private JButton scriptBrowseButton ;
0 commit comments