WizardStartController.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:aptasuite 作者:
/**
 * 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);
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号