JSPX supports jvm debugging, but not in XHTML files

This commit is contained in:
Vladimir Krivosheev
2013-11-05 12:30:35 +01:00
parent 058408f210
commit 1304a2ae0a
@@ -57,7 +57,8 @@ public class JavaBreakpointType extends XLineBreakpointTypeBase {
@Contract("null -> false")
public static boolean doCanPutAt(@Nullable PsiFile psiFile) {
if (psiFile == null) {
// JSPX supports jvm debugging, but not in XHTML files
if (psiFile == null || psiFile.getVirtualFile().getFileType() == StdFileTypes.XHTML) {
return false;
}