/*
- * Copyright 2000-2014 JetBrains s.r.o.
+ * Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package com.intellij.debugger.ui.breakpoints;
import com.intellij.debugger.engine.DebuggerUtils;
-import com.intellij.execution.filters.LineNumbersMapping;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.fileTypes.StdFileTypes;
result.set(JavaLineBreakpointType.class);
}
}
- else if (file.getUserData(LineNumbersMapping.LINE_NUMBERS_MAPPING_KEY) != null) {
- result.set(JavaLineBreakpointType.class);
- }
}
if (result.isNull()) {
result.set(JavaMethodBreakpointType.class);
/*
- * Copyright 2000-2009 JetBrains s.r.o.
+ * Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
PsiElement element;
int offset = lineStart;
+
+ if (file instanceof PsiCompiledFile) {
+ file = ((PsiCompiledFile)file).getDecompiledPsiFile();
+ }
+
while (offset < lineEnd) {
element = file.findElementAt(offset);
if (element != null) {