mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
setPlatformPrefix() extracted
This commit is contained in:
@@ -145,10 +145,10 @@ public abstract class PlatformTestCase extends UsefulTestCase implements DataPro
|
||||
if (resource == null) {
|
||||
resource = PlatformTestCase.class.getClassLoader().getResource("idea/IdeaApplicationInfo.xml");
|
||||
if (resource == null) {
|
||||
System.setProperty("idea.platform.prefix", "PlatformLangXml");
|
||||
setPlatformPrefix("PlatformLangXml");
|
||||
}
|
||||
else {
|
||||
System.setProperty("idea.platform.prefix", "Idea");
|
||||
setPlatformPrefix("Idea");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -742,11 +742,15 @@ public abstract class PlatformTestCase extends UsefulTestCase implements DataPro
|
||||
isUltimate = false;
|
||||
}
|
||||
if (!isUltimate) {
|
||||
System.setProperty("idea.platform.prefix", prefix);
|
||||
setPlatformPrefix(prefix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void setPlatformPrefix(String prefix) {
|
||||
System.setProperty("idea.platform.prefix", prefix);
|
||||
}
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
||||
public @interface WrapInCommand {}
|
||||
|
||||
Reference in New Issue
Block a user