mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
really enable framework detection in detection tests only
This commit is contained in:
+4
-2
@@ -79,11 +79,12 @@ public class FrameworkDetectionManager extends AbstractProjectComponent implemen
|
||||
|
||||
@Override
|
||||
public void initComponent() {
|
||||
doInitialize();
|
||||
if (!myProject.isDefault() && !ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
doInitialize();
|
||||
}
|
||||
}
|
||||
|
||||
public void doInitialize() {
|
||||
if (myProject.isDefault()) return;
|
||||
myDetectionQueue = new MergingUpdateQueue("FrameworkDetectionQueue", 500, true, null, myProject);
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
myDetectionQueue.setPassThrough(false);
|
||||
@@ -122,6 +123,7 @@ public class FrameworkDetectionManager extends AbstractProjectComponent implemen
|
||||
public void doDispose() {
|
||||
if (myDetectedFrameworksData != null) {
|
||||
myDetectedFrameworksData.saveDetected();
|
||||
myDetectedFrameworksData = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user