Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2013-08-08 16:29:42 +0000
committerCurtis Windatt2013-08-12 16:21:10 +0000
commitccbc7db07ed14d13dbb0698138ddfc56a54e8277 (patch)
tree9248396ba82512c580fd581f0134592b11821bb1
parente823934ba32d3b266528df392fb87ae186f200e8 (diff)
downloadeclipse.pde.ui-ccbc7db07ed14d13dbb0698138ddfc56a54e8277.tar.gz
eclipse.pde.ui-ccbc7db07ed14d13dbb0698138ddfc56a54e8277.tar.xz
eclipse.pde.ui-ccbc7db07ed14d13dbb0698138ddfc56a54e8277.zip
Bug 275217 - Tracing tab should not remember selection
Select first checked element if no previous selection Change-Id: I03d53e8a74a0d4d9ba57a98441b90a763d7a0fce
-rw-r--r--ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/TracingBlock.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/TracingBlock.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/TracingBlock.java
index 844a611b64..fa54a42843 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/TracingBlock.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/TracingBlock.java
@@ -231,9 +231,14 @@ public class TracingBlock {
}
fPluginViewer.setCheckedElements(list.toArray());
IPluginModelBase model = getLastSelectedPlugin();
+ if (model == null && !list.isEmpty()) {
+ model = list.get(0);
+ }
if (model != null) {
fPluginViewer.setSelection(new StructuredSelection(model), true);
- pluginSelected(model, list.contains(model));
+ if (fTracingCheck.getSelection()) {
+ pluginSelected(model, list.contains(model));
+ }
} else {
pluginSelected(null, false);
}

Back to the top