From 1e30fa7ded9939fa45a45f82f84c1e8cd95d68aa Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 9 May 2024 00:41:36 +0300 Subject: Refactored a lot of the code and added a bunch of features and settings. Not finished yet but committing, so I can push to GitHub --- .../kotlin/me/kyren223/trident/SettingsState.kt | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 src/main/kotlin/me/kyren223/trident/SettingsState.kt (limited to 'src/main/kotlin/me/kyren223/trident/SettingsState.kt') diff --git a/src/main/kotlin/me/kyren223/trident/SettingsState.kt b/src/main/kotlin/me/kyren223/trident/SettingsState.kt deleted file mode 100644 index b0544f4..0000000 --- a/src/main/kotlin/me/kyren223/trident/SettingsState.kt +++ /dev/null @@ -1,30 +0,0 @@ -package me.kyren223.trident - -import com.intellij.openapi.application.ApplicationManager -import com.intellij.openapi.components.PersistentStateComponent -import com.intellij.openapi.components.State -import com.intellij.openapi.components.Storage -import com.intellij.util.xmlb.XmlSerializerUtil - -// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -@State(name = "me.kyren223.trident.SettingsState", storages = [Storage("SdkSettingsPlugin.xml")]) -class SettingsState : PersistentStateComponent { - - var enterToSelect = true - var width = 800 - var height = 400 - var fontSize = 20 - - override fun getState(): SettingsState { - return this - } - - override fun loadState(state: SettingsState) { - XmlSerializerUtil.copyBean(state, this) - } - - companion object { - val instance: SettingsState - get() = ApplicationManager.getApplication().getService(SettingsState::class.java) - } -} -- cgit v1.3.1