Added TODOs in ConfigureKotlinLibraryNotificationProvider to make it easier to migrate to newer IDEA.
This commit is contained in:
+7
-5
@@ -65,23 +65,25 @@ import java.io.IOException;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.plugin.project.JsModuleDetector.isJsModule;
|
import static org.jetbrains.jet.plugin.project.JsModuleDetector.isJsModule;
|
||||||
|
|
||||||
|
// TODO change "implements" to "extends" on updating to IDEA 122.598+
|
||||||
public class ConfigureKotlinLibraryNotificationProvider implements EditorNotifications.Provider<EditorNotificationPanel> {
|
public class ConfigureKotlinLibraryNotificationProvider implements EditorNotifications.Provider<EditorNotificationPanel> {
|
||||||
private static final Key<EditorNotificationPanel> KEY = Key.create("configure.kotlin.library");
|
private static final Key<EditorNotificationPanel> KEY = Key.create("configure.kotlin.library");
|
||||||
public static final String LIBRARY_NAME = "KotlinRuntime";
|
public static final String LIBRARY_NAME = "KotlinRuntime";
|
||||||
public static final String KOTLIN_RUNTIME_JAR = "kotlin-runtime.jar";
|
public static final String KOTLIN_RUNTIME_JAR = "kotlin-runtime.jar";
|
||||||
private final Project myProject;
|
private final Project myProject;
|
||||||
|
|
||||||
|
public ConfigureKotlinLibraryNotificationProvider(Project project) {
|
||||||
|
myProject = project;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Key<EditorNotificationPanel> getKey() {
|
public Key<EditorNotificationPanel> getKey() {
|
||||||
return KEY;
|
return KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConfigureKotlinLibraryNotificationProvider(Project project) {
|
|
||||||
myProject = project;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO change signature on updating to IDEA 122.598+
|
||||||
|
//public EditorNotificationPanel createNotificationPanel(VirtualFile file, FileEditor fileEditor) {
|
||||||
public EditorNotificationPanel createNotificationPanel(VirtualFile file) {
|
public EditorNotificationPanel createNotificationPanel(VirtualFile file) {
|
||||||
try {
|
try {
|
||||||
if (file.getFileType() != JetFileType.INSTANCE) return null;
|
if (file.getFileType() != JetFileType.INSTANCE) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user