This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.api.java</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.52</specification-version>
<code-name-base>org.netbeans.api.java.classpath</code-name-base>
@Override
public void warningOpened(ErrorDescription warning) {
// TODO but if it is in a test root, maybe do not skip it (though would ideally ignore test source root if scope includes whole projects)
if (NbPreferences.forModule(RunInEditor.class).getBoolean(RunInEditor.RUN_IN_EDITOR, RunInEditor.RUN_IN_EDITOR_DEFAULT)) return;
FileObject file = warning.getFile();
import javax.lang.model.element.TypeElement;
import javax.swing.text.Document;
import org.netbeans.api.java.classpath.ClassPath;
import org.netbeans.api.java.queries.UnitTestForSourceQuery;
import org.netbeans.api.java.source.CancellableTask;
import org.netbeans.api.java.source.ClasspathInfo.PathKind;
import org.netbeans.api.java.source.CompilationInfo;
return;
}
if (UnitTestForSourceQuery.findSources(sourceRoot).length > 0) {
// TODO introduce an option for this in FindBugsPanel akin to RUN_IN_EDITOR
final Set<String> classNames = new HashSet<String>();
new TreePathScanner<Void, Void>() {