-
Notifications
You must be signed in to change notification settings - Fork 22
添加设置按钮并更新相关功能 #8
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
Conversation
ayuayue
commented
Jul 1, 2025
- 在工具窗口添加设置按钮
- 实现设置按钮点击事件处理逻辑
- 新增 SettingAction 类用于设置操作- 更新 MainPanel 和 MainToolBar 类以支持设置功能
- 添加设置图标并更新 DebugToolsIcons 类
- 在工具窗口添加设置按钮 - 实现设置按钮点击事件处理逻辑 - 新增 SettingAction 类用于设置操作- 更新 MainPanel 和 MainToolBar 类以支持设置功能 - 添加设置图标并更新 DebugToolsIcons 类
- 在工具窗口和主工具栏添加帮助按钮 - 实现帮助按钮点击后自动打开浏览器访问帮助文档 - 优化设置按钮,使其弹出设置窗口
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
别的没啥问题
import io.github.future0923.debug.tools.idea.utils.DebugToolsIcons; | ||
|
||
/** | ||
* @author future0923 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
作者
try { | ||
Desktop.getDesktop().browse(new java.net.URI("https://debug-tools.cc/")); | ||
} catch (Exception e) { | ||
JOptionPane.showMessageDialog(null, "无法自动打开浏览器,请手动访问: https://debug-tools.cc/", "提示", JOptionPane.INFORMATION_MESSAGE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英文
*/ | ||
package io.github.future0923.debug.tools.idea.tool.action; | ||
|
||
import com.intellij.openapi.options.ShowSettingsUtil; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
移除没用到的类
|
||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.net.URI; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
移除没用到的类
- 将错误提示信息从中文改为英文,以适应国际化的使用场景 - 优化了代码结构,删除了未使用的导入语句 - 更新了作者信息