Skip to content

Commit 6829c82

Browse files
committed
Fix IdeBundle internal API usage
1 parent 44c8446 commit 6829c82

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

mpp-idea/mpp-idea-exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/middleware/builtin/OpenWebpageProcessor.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package cc.unitmesh.devti.language.middleware.builtin
22

33
import com.intellij.execution.ui.ConsoleView
44
import com.intellij.ide.DataManager
5-
import com.intellij.ide.IdeBundle
65
import com.intellij.ide.browsers.BrowserLauncher
76
import com.intellij.ide.browsers.OpenInBrowserRequest
87
import com.intellij.ide.browsers.WebBrowserService
@@ -19,6 +18,7 @@ import com.intellij.psi.PsiElement
1918
import cc.unitmesh.devti.devins.post.PostProcessor
2019
import cc.unitmesh.devti.devins.post.PostProcessorContext
2120
import cc.unitmesh.devti.devins.post.PostProcessorType
21+
import cc.unitmesh.devti.language.DevInBundle
2222

2323
class OpenWebpageProcessor : PostProcessor {
2424
override val processorName: String get() = PostProcessorType.OpenWebpage.handleName
@@ -54,7 +54,7 @@ class OpenWebpageProcessor : PostProcessor {
5454
BrowserLauncher.instance.browse(url.toExternalForm(), browser, request.project)
5555
}
5656
} catch (e: WebBrowserUrlProvider.BrowserException) {
57-
Messages.showErrorDialog(e.message, IdeBundle.message("browser.error"))
57+
Messages.showErrorDialog(e.message, DevInBundle.message("browser.error"))
5858
} catch (e: Exception) {
5959
logger<OpenWebpageProcessor>().warn(e)
6060
}

mpp-idea/mpp-idea-exts/devins-lang/src/main/resources/messages/DevInBundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ devin.line.marker.run.0=Run {0}
44
devin.label.choose.file=Choice DevIn File
55
devin.run.error.script.not.found=Script not found
66
devin.patch.cannot.read.patch=Cannot read a patch
7+
browser.error=Browser Error
78

89
inspection.group.name=DevIns language
910
inspection.duplicate.agent=Duplicate agent calls detected. It is recommended to make only one call per agent. Please remove any duplicate agent calls.
@@ -16,4 +17,3 @@ editor.preview.help.url=https://ide.unitmesh.cc/local-agent/
1617
editor.preview.variable.panel=Custom Variable Snapshots
1718
devin.prompt.fix.command=You are a top software developer in the world, which can help me to fix the issue.\nWhen I use shell-like language and compile the script, I got an error, can you help me to fix it?\n\nOrigin script:\n```\n{0}\n```\n\nScript with result:\n####\n{1}\n####
1819
devin.prompt.fix.run-result=You are a top software developer in the world, which can help me to fix the issue.\n\nHere is the run result, can you help me to fix it?\nRun result:\n####\n{0}\n####
19-

0 commit comments

Comments
 (0)