mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
can't open any file in non-java IDE
This commit is contained in:
@@ -25,6 +25,7 @@ import com.intellij.psi.search.scope.NonProjectFilesScope;
|
||||
import com.intellij.psi.search.scope.TestsScope;
|
||||
import com.intellij.psi.search.scope.packageSet.*;
|
||||
import com.intellij.ui.ColorUtil;
|
||||
import com.intellij.util.PlatformUtils;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -50,7 +51,9 @@ public class FileColorsModel implements Cloneable {
|
||||
static {
|
||||
globalScopes = new HashMap<String, String>();
|
||||
globalScopes.put(NonProjectFilesScope.NAME, "file.colors.enable.non.project");
|
||||
globalScopes.put(TestsScope.NAME, "file.colors.enable.tests");
|
||||
if (PlatformUtils.isJavaIDE()) {
|
||||
globalScopes.put(TestsScope.NAME, "file.colors.enable.tests");
|
||||
}
|
||||
|
||||
globalScopesColors = new HashMap<String, String>();
|
||||
}
|
||||
|
||||
@@ -70,4 +70,8 @@ public class PlatformUtils {
|
||||
public static boolean isFlexIde() {
|
||||
return FLEX_PREFIX.equals(getPlatformPrefix());
|
||||
}
|
||||
|
||||
public static boolean isJavaIDE() {
|
||||
return isIdea() || isCommunity();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user