mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EnterActionTest fixed
This commit is contained in:
@@ -31,6 +31,14 @@ public class DocumentContent extends DiffContent {
|
||||
myOverridenType = type;
|
||||
}
|
||||
|
||||
public DocumentContent(Document document) {
|
||||
this(null, document, null);
|
||||
}
|
||||
|
||||
public DocumentContent(Document document, FileType type) {
|
||||
this(null, document, type);
|
||||
}
|
||||
|
||||
public Document getDocument() {
|
||||
return myDocument;
|
||||
}
|
||||
@@ -38,6 +46,7 @@ public class DocumentContent extends DiffContent {
|
||||
public OpenFileDescriptor getOpenFileDescriptor(int offset) {
|
||||
VirtualFile file = getFile();
|
||||
if (file == null) return null;
|
||||
if (myProject == null) return null;
|
||||
return new OpenFileDescriptor(myProject, file, offset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user