Merge official template: adopt plugin ID com.prepeep.harmness-browser, Gradle wrapper, IDE 2024.2–251.*, run configs

This commit is contained in:
harmness
2026-09-10 14:57:07 +08:00
parent cbe41e4f4f
commit 4890569b95
18 changed files with 483 additions and 69 deletions
@@ -1,6 +1,5 @@
package com.harmness.toolwindow
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.options.Configurable
import com.intellij.openapi.options.Configurable.WithEpName
import javax.swing.JComponent
@@ -35,8 +34,4 @@ class HarmnessSettingsConfigurable : Configurable, WithEpName {
override fun disposeUIResources() {
panel = null
}
companion object {
private val LOG = Logger.getInstance(HarmnessSettingsConfigurable::class.java)
}
}
@@ -1,6 +1,8 @@
package com.harmness.toolwindow
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.diagnostic.Logger
@@ -13,6 +15,7 @@ import com.intellij.openapi.diagnostic.Logger
* 或者由 Harness 提供专门的无 frame 限制入口。
*/
@State(name = "HarmnessToolwindowSettings", storages = [Storage("harmness-toolwindow.xml")])
@Service(Service.Level.APP)
class SettingsState : PersistentStateComponent<SettingsState.State> {
data class State(
@@ -39,6 +42,6 @@ class SettingsState : PersistentStateComponent<SettingsState.State> {
const val DEFAULT_URL = "http://127.0.0.1:8888"
fun getInstance(): SettingsState =
com.intellij.openapi.components.ServiceManager.getService(SettingsState::class.java)
ServiceManager.getService(SettingsState::class.java)
}
}