Merge change I1a00abb0 into eclair-sdk
* changes: Fix a deadlock when ADT starts, starts building projects, and load the SDK at the same time.
This commit is contained in:
@@ -1045,12 +1045,12 @@ public class AdtPlugin extends AbstractUIPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
ArrayList<IJavaProject> list = new ArrayList<IJavaProject>();
|
||||
synchronized (getSdkLockObject()) {
|
||||
mSdkIsLoaded = LoadStatus.LOADED;
|
||||
|
||||
progress.setTaskName("Check Projects");
|
||||
|
||||
ArrayList<IJavaProject> list = new ArrayList<IJavaProject>();
|
||||
for (IJavaProject javaProject : mPostLoadProjectsToResolve) {
|
||||
if (javaProject.getProject().isOpen()) {
|
||||
list.add(javaProject);
|
||||
@@ -1059,6 +1059,7 @@ public class AdtPlugin extends AbstractUIPlugin {
|
||||
|
||||
// done with this list.
|
||||
mPostLoadProjectsToResolve.clear();
|
||||
}
|
||||
|
||||
// check the projects that need checking.
|
||||
// The method modifies the list (it removes the project that
|
||||
@@ -1077,7 +1078,6 @@ public class AdtPlugin extends AbstractUIPlugin {
|
||||
|
||||
progress.worked(10);
|
||||
}
|
||||
}
|
||||
|
||||
// Notify resource changed listeners
|
||||
progress.setTaskName("Refresh UI");
|
||||
|
||||
Reference in New Issue
Block a user