Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2013-09-25 18:24:35 +0000
committerCurtis Windatt2013-09-25 18:24:35 +0000
commit562d47136fa68be6b09d0bc5b2e4dbd2766d3bbf (patch)
treedf7aca6783b187b4bb8da80bdc726df855f59c74
parentec298b0c6ff4fa44d3f0b6762481181de8ba4ec4 (diff)
downloadeclipse.pde.ui-562d47136fa68be6b09d0bc5b2e4dbd2766d3bbf.tar.gz
eclipse.pde.ui-562d47136fa68be6b09d0bc5b2e4dbd2766d3bbf.tar.xz
eclipse.pde.ui-562d47136fa68be6b09d0bc5b2e4dbd2766d3bbf.zip
Bug 409969 - Target Platform GC should run more often
-rw-r--r--ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java
index a9c2bb07e9..ad4a8f97ff 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java
@@ -815,6 +815,9 @@ public class TargetPlatformPreferencePage extends PreferencePage implements IWor
LoadTargetDefinitionJob.load(toLoad, listener);
fPrevious = toLoad == null ? null : toLoad;
+
+ // Start a separate job to clean p2 bundle pool
+ runGC();
} else {
// Manually update the active target and status line to update name, resolve status, and errors
if (fActiveTarget != null) {
@@ -824,17 +827,12 @@ public class TargetPlatformPreferencePage extends PreferencePage implements IWor
}
fMoved.clear();
- boolean gc = !fRemoved.isEmpty();
fRemoved.clear();
if (toLoad != null) {
fActiveTarget = toLoad;
}
fTableViewer.refresh(true);
updateButtons();
- // start job to do GC
- if (gc) {
- runGC();
- }
return super.performOk();
}

Back to the top