mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
API cleanup: remove AbstractTreeBuilder usages
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
*/
|
||||
package com.intellij.ide.scratch;
|
||||
|
||||
import com.intellij.ide.util.treeView.AbstractTreeBuilder;
|
||||
import com.intellij.lang.Language;
|
||||
import com.intellij.lang.LanguageUtil;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.openapi.extensions.Extensions;
|
||||
import com.intellij.openapi.fileEditor.FileEditorManager;
|
||||
@@ -118,7 +118,7 @@ public abstract class RootType {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void registerTreeUpdater(@NotNull Project project, @NotNull AbstractTreeBuilder builder) {
|
||||
public void registerTreeUpdater(@NotNull Project project, @NotNull Disposable disposable, @NotNull Runnable onUpdate) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public class ScratchProjectViewPane extends ProjectViewPane {
|
||||
};
|
||||
for (RootType rootId : RootType.getAllRootIds()) {
|
||||
if (rootId.isHidden()) continue;
|
||||
rootId.registerTreeUpdater(myProject, builder);
|
||||
rootId.registerTreeUpdater(myProject, builder, builder::queueUpdate);
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user