summaryrefslogtreecommitdiffstats
path: root/tools/eclipse
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-19 17:24:34 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-19 17:24:34 -0400
commitfc5b5aecdeca8bb32eba9d38961b6649395f8913 (patch)
tree72e12d0cfdfdeaa5affcc1bb03ace5c794b3736f /tools/eclipse
parent5cff81bb5878d00925cbab24822123f1feebbbb8 (diff)
parent1a00abb0ae4e98832e3c5a1a06527d244071d905 (diff)
downloadandroid_development-fc5b5aecdeca8bb32eba9d38961b6649395f8913.tar.gz
android_development-fc5b5aecdeca8bb32eba9d38961b6649395f8913.tar.bz2
android_development-fc5b5aecdeca8bb32eba9d38961b6649395f8913.zip
Merge change I1a00abb0 into eclair-sdk
* changes: Fix a deadlock when ADT starts, starts building projects, and load the SDK at the same time.
Diffstat (limited to 'tools/eclipse')
-rw-r--r--tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java b/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java
index a52599fae..5d8b6c25a 100644
--- a/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java
+++ b/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java
@@ -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,24 +1059,24 @@ 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
- // do not need to be resolved again).
- AndroidClasspathContainerInitializer.checkProjectsCache(
- mPostLoadProjectsToCheck);
-
- list.addAll(mPostLoadProjectsToCheck);
+ // check the projects that need checking.
+ // The method modifies the list (it removes the project that
+ // do not need to be resolved again).
+ AndroidClasspathContainerInitializer.checkProjectsCache(
+ mPostLoadProjectsToCheck);
- // update the project that needs recompiling.
- if (list.size() > 0) {
- IJavaProject[] array = list.toArray(
- new IJavaProject[list.size()]);
- AndroidClasspathContainerInitializer.updateProjects(array);
- }
+ list.addAll(mPostLoadProjectsToCheck);
- progress.worked(10);
+ // update the project that needs recompiling.
+ if (list.size() > 0) {
+ IJavaProject[] array = list.toArray(
+ new IJavaProject[list.size()]);
+ AndroidClasspathContainerInitializer.updateProjects(array);
}
+
+ progress.worked(10);
}
// Notify resource changed listeners