diff options
author | Tobias Schwarz | 2012-07-30 11:53:25 +0000 |
---|---|---|
committer | Tobias Schwarz | 2012-07-30 11:54:30 +0000 |
commit | 536d403344246d60efa9823cf79b692dbe083345 (patch) | |
tree | 61df5bba685f6156f539d375c57a7b0075523ac8 /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core | |
parent | aaa0b76751e2279d6b2c7fa8d73d0bcb324ef629 (diff) | |
download | org.eclipse.tcf-536d403344246d60efa9823cf79b692dbe083345.tar.gz org.eclipse.tcf-536d403344246d60efa9823cf79b692dbe083345.tar.xz org.eclipse.tcf-536d403344246d60efa9823cf79b692dbe083345.zip |
Target Explorer: add launch attribute for context attach steps
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core')
2 files changed, 24 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/interfaces/IAttachLaunchAttributes.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/interfaces/IAttachLaunchAttributes.java new file mode 100644 index 000000000..d97dc4330 --- /dev/null +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/interfaces/IAttachLaunchAttributes.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2012 Wind River Systems, Inc. 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 http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Wind River Systems - initial API and implementation + *******************************************************************************/ +package org.eclipse.tcf.te.tcf.launch.core.interfaces; + +/** + * Defines the launch configuration attribute id's for attach launches. + */ +public interface IAttachLaunchAttributes { + + /** + * Launch configuration attribute: List of TCF services to use to attach all their children (i.e. {IProcesses}) + */ + public static final String ATTR_ATTACH_SERVICES = ICommonTCFLaunchAttributes.ATTR_PREFIX + ".attach_services"; //$NON-NLS-1$ +} diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java index aa3ea58cf..ca432d1e9 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java @@ -38,6 +38,7 @@ import org.eclipse.tcf.te.runtime.services.ServiceManager; import org.eclipse.tcf.te.runtime.services.interfaces.IPropertiesAccessService; import org.eclipse.tcf.te.runtime.services.interfaces.constants.IPropertiesAccessServiceConstants; import org.eclipse.tcf.te.tcf.core.peers.Peer; +import org.eclipse.tcf.te.tcf.launch.core.interfaces.IAttachLaunchAttributes; import org.eclipse.tcf.te.tcf.launch.core.interfaces.IPeerModelProperties; import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel; import org.eclipse.tcf.te.tcf.locator.interfaces.services.ILocatorModelUpdateService; @@ -68,6 +69,7 @@ public class AttachLaunchManagerDelegate extends DefaultLaunchManagerDelegate im public void updateLaunchConfigAttributes(ILaunchConfigurationWorkingCopy wc, ILaunchSpecification launchSpec) { super.updateLaunchConfigAttributes(wc, launchSpec); + wc.setAttribute(IAttachLaunchAttributes.ATTR_ATTACH_SERVICES, (List<?>)null); copySpecToConfig(launchSpec, wc); wc.rename(getDefaultLaunchName(wc)); @@ -80,6 +82,7 @@ public class AttachLaunchManagerDelegate extends DefaultLaunchManagerDelegate im public void initLaunchConfigAttributes(ILaunchConfigurationWorkingCopy wc, ILaunchSpecification launchSpec) { super.initLaunchConfigAttributes(wc, launchSpec); + wc.setAttribute(IAttachLaunchAttributes.ATTR_ATTACH_SERVICES, (List<?>)null); copySpecToConfig(launchSpec, wc); wc.rename(getDefaultLaunchName(wc)); |