Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2011-10-25 17:19:30 +0000
committerEugene Tarassov2011-10-25 17:19:30 +0000
commit9c7aeedb79f79a4d7b70bfe91b3e2abfcebd6a74 (patch)
tree447744d64f4f07101d48ff21adc1a248d961fa26 /plugins
parent7f3d8e481000767f8efee8fc150cd4c7c19c7abc (diff)
downloadorg.eclipse.tcf-9c7aeedb79f79a4d7b70bfe91b3e2abfcebd6a74.tar.gz
org.eclipse.tcf-9c7aeedb79f79a4d7b70bfe91b3e2abfcebd6a74.tar.xz
org.eclipse.tcf-9c7aeedb79f79a4d7b70bfe91b3e2abfcebd6a74.zip
TCF Debugger: changed default value of "Run instance of TCF agent on the local host" to false.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/TCFTargetTab.java5
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/launch/TCFLaunchDelegate.java2
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/TCFTargetTab.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/TCFTargetTab.java
index 8e4a58666..9796f06eb 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/TCFTargetTab.java
+++ b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/TCFTargetTab.java
@@ -568,7 +568,7 @@ public class TCFTargetTab extends AbstractLaunchConfigurationTab {
TreeItem item = findItem(findPeerInfo(id));
if (item != null) peer_tree.setSelection(item);
peer_id_text.setText(id);
- run_local_agent_button.setSelection(configuration.getAttribute(TCFLaunchDelegate.ATTR_RUN_LOCAL_AGENT, true));
+ run_local_agent_button.setSelection(configuration.getAttribute(TCFLaunchDelegate.ATTR_RUN_LOCAL_AGENT, false));
use_local_agent_button.setSelection(configuration.getAttribute(TCFLaunchDelegate.ATTR_USE_LOCAL_AGENT, true));
mem_map_cfg = configuration.getAttribute(TCFLaunchDelegate.ATTR_MEMORY_MAP, "null");
}
@@ -592,6 +592,9 @@ public class TCFTargetTab extends AbstractLaunchConfigurationTab {
}
public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
+ configuration.setAttribute(TCFLaunchDelegate.ATTR_RUN_LOCAL_AGENT, false);
+ configuration.setAttribute(TCFLaunchDelegate.ATTR_USE_LOCAL_AGENT, true);
+ configuration.removeAttribute(TCFLaunchDelegate.ATTR_PEER_ID);
}
@Override
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/launch/TCFLaunchDelegate.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/launch/TCFLaunchDelegate.java
index 626a16554..ecf35cb11 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/launch/TCFLaunchDelegate.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/launch/TCFLaunchDelegate.java
@@ -322,7 +322,7 @@ public class TCFLaunchDelegate extends LaunchConfigurationDelegate {
final ILaunch launch, final IProgressMonitor monitor) throws CoreException {
String local_id = null;
int task_cnt = 1;
- if (configuration.getAttribute(ATTR_RUN_LOCAL_AGENT, true)) {
+ if (configuration.getAttribute(ATTR_RUN_LOCAL_AGENT, false)) {
task_cnt++;
if (monitor != null) monitor.beginTask("Starting TCF Agent", task_cnt); //$NON-NLS-1$
local_id = TCFLocalAgent.runLocalAgent();

Back to the top