check that .fxml is not mapped to the associated editor

EA-44316 - FCIIDE: FileContentImpl.getContentAsText
This commit is contained in:
anna
2013-04-23 11:33:56 +02:00
parent 631a615159
commit bcb983d35b
@@ -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