ProcessingSketchRootSelectStep.java 文件源码

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

项目:processing-idea 作者:
private void setupImportRootButtons() {
    if (projectCreationRootOptionButtonGroup.isEmpty()) {
        projectCreationRootOptionButtonGroup.add(importIntoDefaultProjectOption);
        projectCreationRootOptionButtonGroup.add(createProjectInSelectedRootOption);
        projectCreationRootOptionButtonGroup.add(importProjectIntoCustomRootOption);

        for (JRadioButton radioButton : projectCreationRootOptionButtonGroup) {
            if (radioButton == importProjectIntoCustomRootOption) {
                importProjectIntoCustomRootOption.addItemListener(e -> {
                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        customImportRootDirectoryBrowser.setVisible(true);
                        customImportRootDirectoryBrowser.setEnabled(true);
                    } else {
                        customImportRootDirectoryBrowser.setVisible(false);
                        customImportRootDirectoryBrowser.setEnabled(false);
                    }

                    refreshProjectCreationPreview();
                });
            } else {
                radioButton.addItemListener(e -> refreshProjectCreationPreview());
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号