Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

将 "Add Java" 的行为更改为选择一个目录后, 在目录中递归搜索并添加所有 Java #3494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ri-fumo wants to merge 16 commits into HMCL-dev:main
base: main
Choose a base branch
Loading
from ri-fumo:add-java-by-search

Conversation

@ri-fumo
Copy link

@ri-fumo ri-fumo commented Dec 13, 2024
edited
Loading

#3492
如果选择的是某个 Java Home 或 bin 目录, 则认为选择了单个 Java

目录搜索递归层数限制为3层
由于增加按钮会导致过于拥挤, 所以直接更改了 "Add Java" 的行为

另外, i18n 中俄语 西班牙语 日语的翻译可能有误, 需要校正

YiZhiMCQiu reacted with thumbs up emoji
Copy link
Member

新的代码请尽量使用 java.nio.Path 替换 java.io.File。

Copy link
Member

Glavo commented Dec 28, 2024

我不是特别喜欢递归搜索,感觉改成支持多选就可以了

Copy link
Member

递归搜索可以让玩家一次添加多个 Java / 不需要准确选中 java 可执行文件

Copy link
Author

ri-fumo commented Feb 28, 2025
edited
Loading

我刚刚发现 idea 添加 sdk 页面也是单个添加,但是选中的是 JavaHome 目录。

我参考的是我之前用的 eclipse,其中的 jre 是可以递归搜索来添加的,也可以选中单个 JavaHome 来添加。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /