Interface ILaunchTargetManager
-
- All Known Implementing Classes:
LaunchTargetManager
public interface ILaunchTargetManagerThe manager for the launch targets. It is registered as an OSGi service.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringlocalLaunchTargetTypeIdThe type id for the local launch target type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ILaunchTargetaddLaunchTarget(java.lang.String typeId, java.lang.String id)Add a launch target with the given typeId, id, and name.voidaddListener(ILaunchTargetListener listener)Add a listener.ILaunchTargetgetDefaultLaunchTarget(org.eclipse.debug.core.ILaunchConfiguration configuration)What is the default target to use for this launch configuration.ILaunchTargetgetLaunchTarget(java.lang.String typeId, java.lang.String id)Return the launch target with the given typeId and nameILaunchTarget[]getLaunchTargets()The list of all launch targets.ILaunchTarget[]getLaunchTargetsOfType(java.lang.String typeId)The list of launch targets with a given type id.TargetStatusgetStatus(ILaunchTarget target)Return the status of the launch target.voidremoveLaunchTarget(ILaunchTarget target)Removes a launch target.voidremoveListener(ILaunchTargetListener listener)Remove a listener.voidsetDefaultLaunchTarget(org.eclipse.debug.core.ILaunchConfiguration configuration, ILaunchTarget target)Set the default target for the given launch configuration.voidtargetStatusChanged(ILaunchTarget target)The status of the launch target has changed.
-
-
-
Field Detail
-
localLaunchTargetTypeId
static final java.lang.String localLaunchTargetTypeId
The type id for the local launch target type. It is the default launch target type. It represents launching on the underlying machine on which we are running. There is only one launch target of this type which represents that machine.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLaunchTargets
ILaunchTarget[] getLaunchTargets()
The list of all launch targets.- Returns:
- list of launch targets
-
getLaunchTargetsOfType
ILaunchTarget[] getLaunchTargetsOfType(java.lang.String typeId)
The list of launch targets with a given type id.- Parameters:
typeId- the launch target type id- Returns:
- list of launch targets
-
getLaunchTarget
ILaunchTarget getLaunchTarget(java.lang.String typeId, java.lang.String id)
Return the launch target with the given typeId and name- Parameters:
typeId- type of the launch targetid- id of the launch target- Returns:
- the launch target
-
getStatus
TargetStatus getStatus(ILaunchTarget target)
Return the status of the launch target.- Parameters:
target- the launch target- Returns:
- status
-
addLaunchTarget
ILaunchTarget addLaunchTarget(java.lang.String typeId, java.lang.String id)
Add a launch target with the given typeId, id, and name.- Parameters:
typeId- type id of the launch targetid- id for the target.- Returns:
- the created launch target
-
removeLaunchTarget
void removeLaunchTarget(ILaunchTarget target)
Removes a launch target.- Parameters:
target- the launch target to remove
-
targetStatusChanged
void targetStatusChanged(ILaunchTarget target)
The status of the launch target has changed.- Parameters:
target-
-
getDefaultLaunchTarget
ILaunchTarget getDefaultLaunchTarget(org.eclipse.debug.core.ILaunchConfiguration configuration)
What is the default target to use for this launch configuration.- Parameters:
configuration- launch configuration or null if not set- Returns:
- default target for this launch configuration
-
setDefaultLaunchTarget
void setDefaultLaunchTarget(org.eclipse.debug.core.ILaunchConfiguration configuration, ILaunchTarget target)Set the default target for the given launch configuration.- Parameters:
configuration- launch configurationtarget- default target for this launch configuration
-
addListener
void addListener(ILaunchTargetListener listener)
Add a listener.- Parameters:
listener-
-
removeListener
void removeListener(ILaunchTargetListener listener)
Remove a listener.- Parameters:
listener-
-
-