mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check that .fxml is not mapped to the associated editor
EA-44316 - FCIIDE: FileContentImpl.getContentAsText
This commit is contained in:
@@ -21,8 +21,11 @@ public class JavaFxFileTypeFactory extends FileTypeFactory {
|
||||
}
|
||||
|
||||
public static boolean isFxml(@NotNull VirtualFile virtualFile) {
|
||||
return FXML_EXTENSION.equals(virtualFile.getExtension()) &&
|
||||
virtualFile.getFileType() == FileTypeManager.getInstance().getFileTypeByExtension(FXML_EXTENSION);
|
||||
if (FXML_EXTENSION.equals(virtualFile.getExtension())) {
|
||||
final FileType fileType = virtualFile.getFileType();
|
||||
if (fileType == FileTypeManager.getInstance().getFileTypeByExtension(FXML_EXTENSION) && !fileType.isBinary()) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user