debuggercdi/com.nokia.cdt.debug.common/src/com/nokia/cdt/debug/common/internal/api/ILaunchDelegateConnectionExtension.java
author Ed Swartz <ed.swartz@nokia.com>
Wed, 21 Apr 2010 15:10:34 -0500
changeset 1260 f3b387a17eb7
permissions -rw-r--r--
Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1260
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     1
/*
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     3
* All rights reserved.
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     8
*
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    11
*
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    12
* Contributors:
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    13
*
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    14
* Description: 
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    15
*
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    16
*/
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    17
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    18
package com.nokia.cdt.debug.common.internal.api;
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    19
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    20
import org.eclipse.core.runtime.CoreException;
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    21
import org.eclipse.core.runtime.IProgressMonitor;
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    22
import org.eclipse.debug.core.ILaunch;
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    23
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    24
import com.nokia.carbide.remoteconnections.interfaces.IConnection;
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    25
import com.nokia.cdt.debug.common.CarbideCommonDebuggerPlugin;
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    26
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    27
/**
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    28
 * This extension augments a launch delegate's behavior.  Every extension is called for
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    29
 * every connection-based launch; ignore the call if the connection is not relevant
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    30
 * for your needs. 
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    31
 * 
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    32
 * Note: the extension instance is created once for each session.
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    33
 */
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    34
public interface ILaunchDelegateConnectionExtension {
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    35
	String ID = CarbideCommonDebuggerPlugin.PLUGIN_ID + ".launchDelegateConnectionExtension"; //$NON-NLS-1$
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    36
	
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    37
	/** 
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    38
	 * Initialize a connection for a run or debug launch after it has been selected (either it was
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    39
	 * static or was selected by the user; you cannot influence the connection selector).
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    40
	 * This is called before the connection is marked "in use".
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    41
	 * @param launch
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    42
	 * @param connection
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    43
	 * @param monitor
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    44
	 * @throws CoreException if the extension determines some problem with the
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    45
	 * connection for this configuration
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    46
	 */
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    47
	void initializeConnection(ILaunch launch, IConnection connection, IProgressMonitor monitor) throws CoreException;
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    48
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    49
	/**
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    50
	 * Handle any work when the launch has started successfully.
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    51
	 * @param launch
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    52
	 * @param connection
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    53
	 * @param monitor 
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    54
	 * @throws CoreException
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    55
	 */
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    56
	void launchStarted(ILaunch launch, IConnection connection, IProgressMonitor monitor) throws CoreException; 
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    57
	
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    58
	/**
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    59
	 * Terminate a connection for a launch after a session has completed.  This
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    60
	 * is called before the connection is marked "not in use".
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    61
	 * @param launch
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    62
	 * @param connection
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    63
	 * @param monitor
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    64
	 * @throws CoreException if the extension encounters a failure terminating the connection
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    65
	 */
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    66
	void terminateConnection(ILaunch launch, IConnection connection, IProgressMonitor monitor) throws CoreException;
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    67
f3b387a17eb7 Merge PlatSim changes from 2.x, but move ILaunchDelegateConnectionExtension into com.nokia.cdt.debug.common so EDC can use it
Ed Swartz <ed.swartz@nokia.com>
parents:
diff changeset
    68
}