Search in sources :

Example 6 with LightFilePointer

use of com.intellij.openapi.vfs.impl.LightFilePointer in project intellij-community by JetBrains.

the class HistoryEntry method createLight.

@NotNull
static HistoryEntry createLight(@NotNull Project project, @NotNull Element e) throws InvalidDataException {
    EntryData entryData = parseEntry(project, e);
    VirtualFilePointer pointer = new LightFilePointer(entryData.url);
    HistoryEntry entry = new HistoryEntry(pointer, entryData.selectedProvider, null);
    for (Pair<FileEditorProvider, FileEditorState> state : entryData.providerStates) {
        entry.putState(state.first, state.second);
    }
    return entry;
}
Also used : FileEditorProvider(com.intellij.openapi.fileEditor.FileEditorProvider) LightFilePointer(com.intellij.openapi.vfs.impl.LightFilePointer) FileEditorState(com.intellij.openapi.fileEditor.FileEditorState) VirtualFilePointer(com.intellij.openapi.vfs.pointers.VirtualFilePointer) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

LightFilePointer (com.intellij.openapi.vfs.impl.LightFilePointer)6 NotNull (org.jetbrains.annotations.NotNull)4 VirtualFile (com.intellij.openapi.vfs.VirtualFile)2 VirtualFilePointer (com.intellij.openapi.vfs.pointers.VirtualFilePointer)2 FileEditorProvider (com.intellij.openapi.fileEditor.FileEditorProvider)1 FileEditorState (com.intellij.openapi.fileEditor.FileEditorState)1 StructureConfigurableContext (com.intellij.openapi.roots.ui.configuration.projectRoot.StructureConfigurableContext)1 SimpleTextCellAppearance (com.intellij.openapi.roots.ui.util.SimpleTextCellAppearance)1 SimpleTextAttributes (com.intellij.ui.SimpleTextAttributes)1