summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2013-07-11 16:00:05 (EDT)
committer Curtis Windatt2013-07-11 16:00:05 (EDT)
commitb63e95da2a5d5ddb1862f28f45c1fff108533c3b (patch)
tree61a965dbb8e006fca354b26a08ad8415cb18105f
parentcefe817c3d836fe04ebb0d2a5e4751bedf401901 (diff)
downloadeclipse.pde.ui-b63e95da2a5d5ddb1862f28f45c1fff108533c3b.zip
eclipse.pde.ui-b63e95da2a5d5ddb1862f28f45c1fff108533c3b.tar.gz
eclipse.pde.ui-b63e95da2a5d5ddb1862f28f45c1fff108533c3b.tar.bz2
Bug 275217 - Tracing tab should not remember selection
-rw-r--r--ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/TracingBlock.java9
1 files changed, 6 insertions, 3 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 f9fab28..3de3af3 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2012 IBM Corporation and others.
+ * Copyright (c) 2005, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -353,8 +353,11 @@ public class TracingBlock {
settings = PDEPlugin.getDefault().getDialogSettings().addNewSection(TRACING_SETTINGS);
}
IPluginModelBase model = getSelectedModel();
- String id = (model == null) ? null : model.getPluginBase().getId();
- settings.put(SETTINGS_SELECTED_PLUGIN, id);
+ if (model != null && fPluginViewer.getChecked(model)) {
+ settings.put(SETTINGS_SELECTED_PLUGIN, model.getPluginBase().getId());
+ } else {
+ settings.put(SETTINGS_SELECTED_PLUGIN, (String) null);
+ }
}
private TracingPropertySource getPropertySource(IPluginModelBase model) {