Skip to content

Commit c58a31c

Browse files
committed
REDUCEConfigDialog: Append Pathname to Command label only if not using a shell or checking command pathname.
1 parent f1feb1e commit c58a31c

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/fjwright/runreduce/REDUCEConfigDialog.fxml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@
181181
GridPane.rowIndex="3"/>
182182
<Text text="\$REDUCE used as a path prefix below is replaced by 'Command Root Directory' if it is set above, otherwise by 'REDUCE Root Directory'."
183183
wrappingWidth="600.0" GridPane.columnSpan="3" GridPane.rowIndex="4"/>
184-
<Label text="Command Pathname" GridPane.rowIndex="5"/>
184+
<HBox alignment="CENTER_LEFT" GridPane.rowIndex="5">
185+
<Label text="Command"/>
186+
<Label fx:id="commandPathnameLabel" text=" Pathname"/>
187+
</HBox>
185188
<TextField fx:id="commandPathNameTextField" promptText="Required" GridPane.columnIndex="1"
186189
GridPane.rowIndex="5">
187190
<tooltip>

src/fjwright/runreduce/REDUCEConfigDialog.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public class REDUCEConfigDialog {
4242
@FXML
4343
private CheckBox useShellCheckBox, checkCommandCheckBox;
4444
@FXML
45+
private Label commandPathnameLabel;
46+
@FXML
4547
private TextField arg1TextField, arg2TextField, arg3TextField, arg4TextField, arg5TextField;
4648
@FXML
4749
private GridPane commandGridPane;
@@ -63,6 +65,8 @@ private void initialize() {
6365
listView.setItems(listViewObservableList = FXCollections.observableArrayList());
6466
setupDialog(RunREDUCE.reduceConfiguration);
6567
createCommandArgFCButtons();
68+
commandPathnameLabel.visibleProperty().bind(useShellCheckBox.selectedProperty().not()
69+
.or(checkCommandCheckBox.selectedProperty()));
6670
}
6771

6872
/**

0 commit comments

Comments
 (0)