Skip to content

Commit db72992

Browse files
authored
Merge pull request #8442 from shivam71/single_file_refactoring_fix
Allowing refactorings for java files not part of any project.
2 parents a1c1692 + 9afc73e commit db72992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/refactoring.java/src/org/netbeans/modules/refactoring/java/RefactoringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public static boolean isFileInOpenProject(FileObject file) {
305305
public static boolean isOnSourceClasspath(FileObject fo) {
306306
Project pr = FileOwnerQuery.getOwner(fo);
307307
if (pr == null) {
308-
return false;
308+
return SourceLauncher.isSourceLauncherFile(fo);
309309
}
310310

311311
//workaround for 143542

0 commit comments

Comments
 (0)