Interface ILaunchTargetManager

  • All Known Implementing Classes:
    LaunchTargetManager

    public interface ILaunchTargetManager
    The manager for the launch targets. It is registered as an OSGi service.
    • 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 target
        id - 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 target
        id - 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 configuration
        target - 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 -