File tree Expand file tree Collapse file tree 2 files changed +1098
-0
lines changed
kotlin-analysis-api/src/main/java/com/intellij/openapi Expand file tree Collapse file tree 2 files changed +1098
-0
lines changed Original file line number Diff line number Diff line change 1+ // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
2+ package com .intellij .openapi .fileTypes ;
3+
4+ import com .intellij .openapi .application .ApplicationManager ;
5+ import com .intellij .openapi .components .Service ;
6+ import com .intellij .openapi .extensions .ExtensionPointName ;
7+ import com .intellij .util .KeyedLazyInstance ;
8+
9+ /**
10+ * @see BinaryFileDecompiler
11+ * TODO: Remove when figure something out via KT-81715
12+ */
13+ @ Service
14+ public final class BinaryFileTypeDecompilers extends FileTypeExtension <BinaryFileDecompiler > {
15+ private static final ExtensionPointName <KeyedLazyInstance <BinaryFileDecompiler >> EP_NAME =
16+ new ExtensionPointName <>("com.intellij.filetype.decompiler" );
17+
18+ private BinaryFileTypeDecompilers () {
19+ super (EP_NAME );
20+ }
21+
22+ public void notifyDecompilerSetChange () {
23+ // We do nothing here because the decompiler set is not supposed to change during the lifetime of the compiler.
24+ // But hopefully, we'll find some other way to fix the issue via KT-81715
25+ }
26+
27+ public static BinaryFileTypeDecompilers getInstance () {
28+ return ApplicationManager .getApplication ().getService (BinaryFileTypeDecompilers .class );
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments