mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-200761 Settings: Intentions: "Before/After" sections for intention actions are empty
added support for exact file name matchers
This commit is contained in:
+2
-2
@@ -12,6 +12,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
@@ -108,8 +109,7 @@ public abstract class BeforeAfterActionMetaData implements BeforeAfterMetaData {
|
||||
}
|
||||
|
||||
private static boolean checkUrl(URL url, List<TextDescriptor> urls) {
|
||||
try {
|
||||
url.openStream();
|
||||
try (InputStream ignored = url.openStream()) {
|
||||
urls.add(new ResourceTextDescriptor(url));
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user