diff options
author | Uwe Stieber | 2012-11-23 11:59:29 +0000 |
---|---|---|
committer | Uwe Stieber | 2012-11-23 12:00:11 +0000 |
commit | 2c43a1b5e56a84729b0f47e032c05313bb454a43 (patch) | |
tree | cb01e35d5be04285dcc76672c296f5f3c650c728 /target_explorer/plugins/org.eclipse.tcf.te.runtime.services | |
parent | 7aeb78abbc0eac3c2a64183220e6f01312206537 (diff) | |
download | org.eclipse.tcf-2c43a1b5e56a84729b0f47e032c05313bb454a43.tar.gz org.eclipse.tcf-2c43a1b5e56a84729b0f47e032c05313bb454a43.tar.xz org.eclipse.tcf-2c43a1b5e56a84729b0f47e032c05313bb454a43.zip |
Target Explorer: Added property tester to test if a debugger has been launched already for a given context
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.services')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDebugService.java | 70 |
1 files changed, 39 insertions, 31 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDebugService.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDebugService.java index b5fc8e4d7..7a1aa975b 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDebugService.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IDebugService.java @@ -1,31 +1,39 @@ -/*******************************************************************************
- * Copyright (c) 2011 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.runtime.services.interfaces;
-
-import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
-import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
-
-/**
- * Debug service.
- * <p>
- * Allow to start and control the debugger for a set of given debug contexts.
- */
-public interface IDebugService extends IService {
-
- /**
- * Launches a debug session for the given context and attaches to it. The attach
- * can be parameterized via the data properties.
- *
- * @param context The debug context. Must not be <code>null</code>.
- * @param data The data properties to parameterize the attach. Must not be <code>null</code>.
- * @param callback The callback to invoke once the operation completed. Must not be <code>null</code>.
- */
- public void attach(Object context, IPropertiesContainer data, ICallback callback);
-}
+/******************************************************************************* + * Copyright (c) 2011 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.runtime.services.interfaces; + +import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback; +import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer; + +/** + * Debug service. + * <p> + * Allow to start and control the debugger for a set of given debug contexts. + */ +public interface IDebugService extends IService { + + /** + * Launches a debug session for the given context and attaches to it. The attach + * can be parameterized via the data properties. + * + * @param context The debug context. Must not be <code>null</code>. + * @param data The data properties to parameterize the attach. Must not be <code>null</code>. + * @param callback The callback to invoke once the operation completed. Must not be <code>null</code>. + */ + public void attach(Object context, IPropertiesContainer data, ICallback callback); + + /** + * Returns if or if not the debugger has been launched for the given context. + * + * @param context The debug context. Must not be <code>null</code>. + * @return <code>True</code> if the debugger has been launched for the context, <code>false</code> otherwise. + */ + public boolean isLaunched(Object context); +} |