[intellij sh] IDEA-267920 Fix plugin compatibility problem
[idea/community.git] / platform / diff-impl / src / com / intellij / diff / editor / DiffVirtualFile.kt
1 // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
2 package com.intellij.diff.editor
3
4 import com.intellij.diff.impl.DiffRequestProcessor
5 import com.intellij.openapi.project.Project
6 import com.intellij.openapi.vfs.VirtualFileWithoutContent
7 import com.intellij.testFramework.LightVirtualFile
8
9 abstract class DiffVirtualFile(name: String) :
10   LightVirtualFile(name, DiffFileType.INSTANCE, ""), DiffContentVirtualFile, VirtualFileWithoutContent {
11
12   abstract fun createProcessor(project: Project): DiffRequestProcessor
13
14   override fun isWritable(): Boolean = false
15
16   override fun toString(): String = "${javaClass.name}@${Integer.toHexString(hashCode())}"
17 }