diff options
author | Xavier Ducrohet <xav@android.com> | 2010-07-09 10:03:54 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-07-09 10:03:54 -0700 |
commit | f24ba5fdf67b84f5f91ecd4af77ea62133c18efe (patch) | |
tree | 1aef4a4176ec7edfdd9e0b88056d9d3c29eefd36 | |
parent | 5da0801262e107975db7ebdfdb025b7724f03a31 (diff) | |
parent | 9d389a4a161956e6df78fd81ad8263e92f7d2998 (diff) | |
download | sdk-f24ba5fdf67b84f5f91ecd4af77ea62133c18efe.zip sdk-f24ba5fdf67b84f5f91ecd4af77ea62133c18efe.tar.gz sdk-f24ba5fdf67b84f5f91ecd4af77ea62133c18efe.tar.bz2 |
Merge "Prevent output to console when closing several projects+libs at once."
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java index b67a5be..9423ae7 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java @@ -1245,6 +1245,9 @@ public final class Sdk { * @return an {@link IStatus} with the status of the action. */ private IStatus linkProjectAndLibrary(LinkLibraryBundle bundle, IProgressMonitor monitor) { + if (bundle.mProject.isOpen() == false) { + return Status.OK_STATUS; + } try { // add the library to the list of dynamic references. This is necessary to receive // notifications that the library content changed in the builders. @@ -1308,6 +1311,9 @@ public final class Sdk { // loop on the projects to add. for (IProject library : bundle.mLibraryProjects) { + if (library.isOpen() == false) { + continue; + } final String libName = library.getName(); final String varName = getLibraryVariableName(libName); |