mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EDU-406 Assertion failed in Study Editor
This commit is contained in:
+1
-6
@@ -13,11 +13,6 @@ import com.jetbrains.edu.learning.StudyUtils;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* User: lia
|
||||
* Date: 10.05.14
|
||||
* Time: 12:45
|
||||
*/
|
||||
class StudyFileEditorProvider implements FileEditorProvider, DumbAware {
|
||||
static final private String EDITOR_TYPE_ID = "StudyEditor";
|
||||
final private FileEditorProvider defaultTextEditorProvider = TextEditorProvider.getInstance();
|
||||
@@ -25,7 +20,7 @@ class StudyFileEditorProvider implements FileEditorProvider, DumbAware {
|
||||
@Override
|
||||
public boolean accept(@NotNull Project project, @NotNull VirtualFile file) {
|
||||
TaskFile taskFile = StudyUtils.getTaskFile(project, file);
|
||||
return taskFile != null && !taskFile.isUserCreated();
|
||||
return taskFile != null && !taskFile.isUserCreated() && TextEditorProvider.isTextFile(file);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user