diff options
| author | Curtis Windatt | 2013-09-25 18:24:35 +0000 |
|---|---|---|
| committer | Curtis Windatt | 2013-09-25 18:24:35 +0000 |
| commit | 562d47136fa68be6b09d0bc5b2e4dbd2766d3bbf (patch) | |
| tree | df7aca6783b187b4bb8da80bdc726df855f59c74 | |
| parent | ec298b0c6ff4fa44d3f0b6762481181de8ba4ec4 (diff) | |
| download | eclipse.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
Change-Id: I06370c3b9e6316392fc10ba7b417cd46763cc5da
| -rw-r--r-- | ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java | 8 |
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(); } |
