/**
* Implements the logic for choosing the folder to server as the base path of the project
*/
@FXML
private void projectPathFileChooserActionButton() {
// Get the configuration file path
DirectoryChooser chooser = new DirectoryChooser();
chooser.setTitle("Choose the project location");
if (getDataModel().getProjectPath().isNotEmpty().get()) {
chooser.setInitialDirectory(new File(getDataModel().getProjectPath().get()));
}
File selectedDirectory = chooser.showDialog(null);
// Load configuration unless the user has chosen not to complete the dialog
if (selectedDirectory != null) {
projectPathTextField.setText(selectedDirectory.getAbsolutePath());
getDataModel().setLastSelectedDirectory(selectedDirectory);
}
}
WizardStartController.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:aptasuite
作者:
评论列表
文章目录