Search in sources :

Example 1 with CpuSnapshotFileType

use of com.jetbrains.actionscript.profiler.file.CpuSnapshotFileType in project intellij-plugins by JetBrains.

the class CPUSnapshotNode method getNavigatable.

@Override
public Navigatable getNavigatable() {
    if (navigatableCache == null) {
        final String name = runConfigurationName + " " + getTitle();
        VirtualFile virtualFile = new LightVirtualFile(name, new CpuSnapshotFileType(), "") {

            @NotNull
            @Override
            public String getPath() {
                return getName();
            }
        };
        virtualFile.putUserData(ProfileData.CALL_TREE_KEY, callTree);
        navigatableCache = new OpenFileDescriptor(module.getProject(), virtualFile);
    }
    return navigatableCache;
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) LightVirtualFile(com.intellij.testFramework.LightVirtualFile) LightVirtualFile(com.intellij.testFramework.LightVirtualFile) OpenFileDescriptor(com.intellij.openapi.fileEditor.OpenFileDescriptor) CpuSnapshotFileType(com.jetbrains.actionscript.profiler.file.CpuSnapshotFileType)

Aggregations

OpenFileDescriptor (com.intellij.openapi.fileEditor.OpenFileDescriptor)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 LightVirtualFile (com.intellij.testFramework.LightVirtualFile)1 CpuSnapshotFileType (com.jetbrains.actionscript.profiler.file.CpuSnapshotFileType)1