mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
extension points register
This commit is contained in:
@@ -71,7 +71,7 @@ public abstract class IdeaTestCase extends TestCase implements DataProvider {
|
||||
public static final long DEFAULT_TEST_TIME = 300L;
|
||||
public static long ourTestTime = DEFAULT_TEST_TIME;
|
||||
private static final MyThreadGroup MY_THREAD_GROUP = new MyThreadGroup();
|
||||
|
||||
private static boolean myRegisterExtensionPoints = false;
|
||||
protected long getTimeRequired() {
|
||||
return DEFAULT_TEST_TIME;
|
||||
}
|
||||
@@ -93,7 +93,10 @@ public abstract class IdeaTestCase extends TestCase implements DataProvider {
|
||||
Extensions.registerAreaClass("IDEA_PROJECT", null);
|
||||
Extensions.registerAreaClass("IDEA_MODULE", "IDEA_PROJECT");
|
||||
}
|
||||
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
|
||||
if (!myRegisterExtensionPoints){
|
||||
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
|
||||
myRegisterExtensionPoints = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
|
||||
@@ -60,6 +60,7 @@ public class LightIdeaTestCase extends TestCase implements DataProvider {
|
||||
private static TestCase ourTestCase = null;
|
||||
public static Thread ourTestThread;
|
||||
private String oldCodeStyleSettings;
|
||||
private static boolean myRegisterExtensionPoints;
|
||||
|
||||
/**
|
||||
* @return Project to be used in tests for example for project components retrieval.
|
||||
@@ -92,7 +93,10 @@ public class LightIdeaTestCase extends TestCase implements DataProvider {
|
||||
Extensions.registerAreaClass("IDEA_PROJECT", null);
|
||||
Extensions.registerAreaClass("IDEA_MODULE", "IDEA_PROJECT");
|
||||
}
|
||||
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
|
||||
if (!myRegisterExtensionPoints){
|
||||
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
|
||||
myRegisterExtensionPoints = true;
|
||||
}
|
||||
cleanupApplicationCaches();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user