public abstract class RootType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<RootType> |
ROOT_EP |
Modifier | Constructor and Description |
---|---|
protected |
RootType(java.lang.String id,
java.lang.String displayName) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsFile(VirtualFile file) |
void |
fileClosed(VirtualFile file,
FileEditorManager source) |
void |
fileOpened(VirtualFile file,
FileEditorManager source) |
static <T extends RootType> |
findByClass(java.lang.Class<T> aClass) |
static RootType |
findById(java.lang.String id) |
VirtualFile |
findFile(Project project,
java.lang.String pathName,
ScratchFileService.Option option) |
static RootType |
forFile(VirtualFile file) |
static java.util.List<RootType> |
getAllRootTypes() |
java.lang.String |
getDisplayName() |
java.lang.String |
getId() |
boolean |
isHidden() |
boolean |
isIgnored(Project project,
VirtualFile element) |
void |
registerTreeUpdater(Project project,
Disposable disposable,
java.lang.Runnable onUpdate) |
javax.swing.Icon |
substituteIcon(Project project,
VirtualFile file) |
Language |
substituteLanguage(Project project,
VirtualFile file) |
java.lang.String |
substituteName(Project project,
VirtualFile file) |
public static final ExtensionPointName<RootType> ROOT_EP
public static java.util.List<RootType> getAllRootTypes()
public static RootType findById(java.lang.String id)
public static <T extends RootType> T findByClass(java.lang.Class<T> aClass)
public static RootType forFile(VirtualFile file)
public final java.lang.String getId()
public final java.lang.String getDisplayName()
public boolean isHidden()
public boolean containsFile(VirtualFile file)
public Language substituteLanguage(Project project, VirtualFile file)
public javax.swing.Icon substituteIcon(Project project, VirtualFile file)
public java.lang.String substituteName(Project project, VirtualFile file)
public VirtualFile findFile(Project project, java.lang.String pathName, ScratchFileService.Option option) throws java.io.IOException
java.io.IOException
public void fileOpened(VirtualFile file, FileEditorManager source)
public void fileClosed(VirtualFile file, FileEditorManager source)
public boolean isIgnored(Project project, VirtualFile element)
public void registerTreeUpdater(Project project, Disposable disposable, java.lang.Runnable onUpdate)