Skip to content

Commit 9768b27

Browse files
committed
feat: replace JOptionPane error dialogs with NotificationUtil for error handling
1 parent 97b499a commit 9768b27

3 files changed

Lines changed: 0 additions & 22 deletions

File tree

src/main/java/com/laker/postman/util/MessageKeys.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,6 @@ private MessageKeys() {
612612

613613
// Success messages
614614
public static final String SETTINGS_SAVE_SUCCESS = "settings.save.success";
615-
public static final String SETTINGS_SAVE_SUCCESS_TITLE = "settings.save.success.title";
616615

617616
// ============ 请求Body相关 ============
618617
public static final String REQUEST_BODY_TYPE = "request.body.type";
@@ -1217,7 +1216,6 @@ private MessageKeys() {
12171216
public static final String TOOLBOX_UUID_COUNT = "toolbox.uuid.count";
12181217
public static final String TOOLBOX_UUID_FORMAT = "toolbox.uuid.format";
12191218
public static final String TOOLBOX_UUID_UPPERCASE = "toolbox.uuid.uppercase";
1220-
public static final String TOOLBOX_UUID_LOWERCASE = "toolbox.uuid.lowercase";
12211219
public static final String TOOLBOX_UUID_WITH_HYPHENS = "toolbox.uuid.with_hyphens";
12221220
public static final String TOOLBOX_UUID_WITHOUT_HYPHENS = "toolbox.uuid.without_hyphens";
12231221
public static final String TOOLBOX_UUID_VERSION_INFO = "toolbox.uuid.version_info";
@@ -1336,16 +1334,11 @@ private MessageKeys() {
13361334
public static final String CERT_CLOSE = "cert.close";
13371335
public static final String CERT_ERROR = "cert.error";
13381336
public static final String CERT_DESCRIPTION = "cert.description";
1339-
public static final String CERT_ADD_TOOLTIP = "cert.add.tooltip";
1340-
public static final String CERT_EDIT_TOOLTIP = "cert.edit.tooltip";
1341-
public static final String CERT_DELETE_TOOLTIP = "cert.delete.tooltip";
1342-
public static final String CERT_HELP_TOOLTIP = "cert.help.tooltip";
13431337

13441338
// Client Certificate Console Logs
13451339
public static final String CERT_CONSOLE_MATCHED = "cert.console.matched";
13461340
public static final String CERT_CONSOLE_LOADED = "cert.console.loaded";
13471341
public static final String CERT_CONSOLE_LOAD_FAILED = "cert.console.load_failed";
1348-
public static final String CERT_CONSOLE_NOT_FOUND = "cert.console.not_found";
13491342
public static final String CERT_CONSOLE_VALIDATION_FAILED = "cert.console.validation_failed";
13501343
public static final String CERT_CONSOLE_FILE_NOT_FOUND = "cert.console.file_not_found";
13511344

src/main/resources/messages_en.properties

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,6 @@ settings.validation.max_opened_requests_error=Max opened requests must be a posi
504504
settings.validation.invalid_number=Please enter a valid number
505505
# Success messages
506506
settings.save.success=Settings saved successfully
507-
settings.save.success.title=Success
508507
tab.close_others=Close Others
509508
tab.close_all=Close All
510509
tab.close_current=Close Current
@@ -784,16 +783,11 @@ cert.help.title=Client Certificate Configuration Guide
784783
cert.help.content=Client certificates are used for mTLS (mutual TLS) authentication.\n\nSupported certificate formats:\n• PFX/P12: Single file containing both certificate and private key\n• PEM: Separate certificate file and private key file\n\nHost matching:\n• Exact match: api.example.com\n• Wildcard match: *.example.com\n\nPort configuration:\n• 0 means match all ports\n• Specific port number matches only that port\n\nPriority: The first matching enabled certificate will be used.
785784
cert.error=Error
786785
cert.description=Configure client certificates for mTLS authentication. Supports PFX/P12 and PEM formats. Certificates will be automatically matched and applied to requests based on hostname and port.
787-
cert.add.tooltip=Add new client certificate configuration
788-
cert.edit.tooltip=Edit selected certificate configuration
789-
cert.delete.tooltip=Delete selected certificate configuration
790-
cert.help.tooltip=View client certificate configuration help documentation
791786

792787
# Client Certificate Console Logs
793788
cert.console.matched=🔐 Client Certificate Matched: {0}:{1} -> [{2}] {3}
794789
cert.console.loaded=✅ Client Certificate Loaded Successfully: {0}
795790
cert.console.load_failed=❌ Client Certificate Load Failed: {0} - {1}
796-
cert.console.not_found=ℹ️ No Matching Client Certificate Found: {0}:{1}
797791
cert.console.validation_failed=⚠️ Client Certificate Validation Failed: {0}
798792
cert.console.file_not_found=❌ Certificate File Not Found or Unreadable: {0}
799793

@@ -922,7 +916,6 @@ step.confirmChange=Confirm Change
922916
step.selectStrategy=Select Strategy
923917
step.executeOperation=Execute Operation
924918
# GitOperationDialog missing i18n translations
925-
# Pull operation related options
926919
git.dialog.option.pull.uncommittedAutoMerge.title=💡 Uncommitted changes detected, can auto-merge
927920
git.dialog.option.pull.uncommittedChoose.title=💡 Uncommitted changes detected, please choose handling method:
928921
git.dialog.option.commitFirstPull=Commit local changes first, then pull
@@ -1254,7 +1247,6 @@ toolbox.uuid.generate=Generate UUID
12541247
toolbox.uuid.count=Count
12551248
toolbox.uuid.format=Format
12561249
toolbox.uuid.uppercase=Uppercase
1257-
toolbox.uuid.lowercase=Lowercase
12581250
toolbox.uuid.with_hyphens=With Hyphens
12591251
toolbox.uuid.without_hyphens=Without Hyphens
12601252
toolbox.uuid.version_info=ℹ️ UUID Version 4 (Random)

src/main/resources/messages_zh.properties

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ step.confirmChange=确认变更
874874
step.selectStrategy=选择策略
875875
step.executeOperation=执行操作
876876
# GitOperationDialog missing i18n translations
877-
# Pull operation related options
878877
git.dialog.option.pull.uncommittedAutoMerge.title=💡 检测到未提交变更,可自动合并
879878
git.dialog.option.pull.uncommittedChoose.title=💡 检测到未提交变更,请选择处理方式:
880879
git.dialog.option.commitFirstPull=先提交本地变更,再拉取
@@ -1202,7 +1201,6 @@ toolbox.uuid.generate=生成UUID
12021201
toolbox.uuid.count=数量
12031202
toolbox.uuid.format=格式
12041203
toolbox.uuid.uppercase=大写
1205-
toolbox.uuid.lowercase=小写
12061204
toolbox.uuid.with_hyphens=带连字符
12071205
toolbox.uuid.without_hyphens=不带连字符
12081206
toolbox.uuid.version_info=ℹ️ UUID Version 4 (随机)
@@ -1324,14 +1322,9 @@ cert.help.content=客户端证书用于 mTLS (mutual TLS) 认证。\n\n支持的
13241322
cert.close=关闭
13251323
cert.error=错误
13261324
cert.description=配置客户端证书用于 mTLS 认证。支持 PFX/P12 和 PEM 格式。证书将根据主机名和端口自动匹配并应用到请求中。
1327-
cert.add.tooltip=添加新的客户端证书配置
1328-
cert.edit.tooltip=编辑选中的证书配置
1329-
cert.delete.tooltip=删除选中的证书配置
1330-
cert.help.tooltip=查看客户端证书配置帮助文档
13311325
# 客户端证书控制台日志
13321326
cert.console.matched=🔐 客户端证书匹配: {0}:{1} -> [{2}] {3}
13331327
cert.console.loaded=✅ 客户端证书加载成功: {0}
13341328
cert.console.load_failed=❌ 客户端证书加载失败: {0} - {1}
1335-
cert.console.not_found=ℹ️ 未找到匹配的客户端证书: {0}:{1}
13361329
cert.console.validation_failed=⚠️ 客户端证书验证失败: {0}
13371330
cert.console.file_not_found=❌ 证书文件不存在或不可读: {0}

0 commit comments

Comments
 (0)