本文整理了Java中com.intellij.openapi.components.State
类的一些代码示例,展示了State
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。State
类的具体详情如下:
包路径:com.intellij.openapi.components.State
类名称:State
暂无
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
@State(
name = GoConstants.GO_LIBRARIES_SERVICE_NAME,
storages = {
@Storage(id = "default", file = StoragePathMacros.PROJECT_FILE),
@Storage(id = "dir", file = StoragePathMacros.PROJECT_CONFIG_DIR + "/" + GoConstants.GO_LIBRARIES_CONFIG_FILE, scheme = StorageScheme.DIRECTORY_BASED)
}
)
public class GoProjectLibrariesService extends GoLibrariesService<GoLibrariesState> {
public static GoProjectLibrariesService getInstance(@NotNull Project project) {
return ServiceManager.getService(project, GoProjectLibrariesService.class);
}
}
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
@State(
name = GoConstants.GO,
storages = @Storage(file = StoragePathMacros.APP_CONFIG + "/editor.codeinsight.xml")
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
@State(
name = "GoExcludedPaths",
storages = {
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
@State(
name = GoConstants.GO_LIBRARIES_SERVICE_NAME,
storages = @Storage(file = StoragePathMacros.MODULE_FILE)
)
public class GoModuleLibrariesService extends GoLibrariesService<GoLibrariesState> {
public static GoModuleLibrariesService getInstance(@NotNull Module module) {
return ModuleServiceManager.getService(module, GoModuleLibrariesService.class);
}
}
代码示例来源:origin: KronicDeth/intellij-elixir
@State(
name = Serializer.COMPILER_OPTIONS_COMPONENT_NAME,
storages = {
代码示例来源:origin: ballerina-platform/ballerina-lang
/**
* Represents Ballerina project library service.
*/
@State(name = BallerinaConstants.BALLERINA_LIBRARIES_SERVICE_NAME,
storages = {
@Storage(value = BallerinaConstants.BALLERINA_LIBRARIES_CONFIG_FILE,
scheme = StorageScheme.DIRECTORY_BASED)
})
public class BallerinaProjectLibrariesService extends BallerinaLibrariesService<BallerinaLibraryState> {
public static BallerinaProjectLibrariesService getInstance(@NotNull Project project) {
return ServiceManager.getService(project, BallerinaProjectLibrariesService.class);
}
}
代码示例来源:origin: KronicDeth/intellij-elixir
@com.intellij.openapi.components.State(
name = "Credo",
storages = {
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
@State(
name = GoConstants.GO_LIBRARIES_SERVICE_NAME,
storages = @Storage(file = StoragePathMacros.APP_CONFIG + "/" + GoConstants.GO_LIBRARIES_CONFIG_FILE)
代码示例来源:origin: ballerina-platform/ballerina-lang
@State(name = BallerinaConstants.BALLERINA_LIBRARIES_SERVICE_NAME,
storages = @Storage(value = BallerinaConstants.BALLERINA_LIBRARIES_CONFIG_FILE))
public class BallerinaApplicationLibrariesService
代码示例来源:origin: KronicDeth/intellij-elixir
@State(
name = "ElixirFoldingSettings",
storages = @Storage(file = "editor.codeinsight.xml")
代码示例来源:origin: google/google-java-format
@State(
name = "GoogleJavaFormatSettings",
storages = {@Storage("google-java-format.xml")})
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
@State(name = GoConstants.GO_MODULE_SESTTINGS_SERVICE_NAME, storages = @Storage(file = StoragePathMacros.MODULE_FILE))
public class GoModuleSettings implements PersistentStateComponent<GoModuleSettings.GoModuleSettingsState> {
public static final Topic<BuildTargetListener> TOPIC = Topic.create("build target changed", BuildTargetListener.class);
代码示例来源:origin: ballerina-platform/ballerina-lang
@State(
name = BallerinaConstants.BALLERINA_MODULE_SESTTINGS_SERVICE_NAME,
storages = @Storage(value = StoragePathMacros.MODULE_FILE)
代码示例来源:origin: ballerina-platform/ballerina-lang
@State(name = "BallerinaLSPState", storages = @Storage(file = "BallerinaLSPState.xml"))
代码示例来源:origin: ballerina-platform/ballerina-lang
@State(name = "BallerinaRecursiveReferenceSearch",
storages = @Storage(value = "recursive.reference.search.xml"))
public class BallerinaRecursiveReferenceSearchSettings
代码示例来源:origin: ballerina-platform/ballerina-lang
@State(name = "BallerinaSemanticAnalyzer",
storages = @Storage(value = "editor.semantic.analyzer.xml"))
public class BallerinaSemanticAnalyzerSettings implements PersistentStateComponent<BallerinaSemanticAnalyzerSettings> {
代码示例来源:origin: JetBrains/ideavim
@State(
name = "VimSettings",
storages = {@Storage(file = "$APP_CONFIG$/vim_settings.xml")})
代码示例来源:origin: ballerina-platform/ballerina-lang
@State(name = "BallerinaCodeInsight",
storages = @Storage(value = "editor.code.insight.xml"))
public class BallerinaCodeInsightSettings implements PersistentStateComponent<BallerinaCodeInsightSettings> {
代码示例来源:origin: hsz/idea-gitignore
@State(name = "IgnoreSettings", storages = @Storage("ignore.xml"))
public class IgnoreSettings implements PersistentStateComponent<Element>, Listenable<IgnoreSettings.Listener> {
代码示例来源:origin: dboissier/mongo4idea
@State(
name = "MongoConfiguration",
storages = {
内容来源于网络,如有侵权,请联系作者删除!