Class DefaultLaunchConfigProvider

  • All Implemented Interfaces:
    ILaunchConfigurationProvider

    public class DefaultLaunchConfigProvider
    extends java.lang.Object
    implements ILaunchConfigurationProvider
    The launch config provider for the default descriptor which is the launch config itself. Override this class and register an extension if you want to support targets other than the local connection.
    • Constructor Detail

      • DefaultLaunchConfigProvider

        public DefaultLaunchConfigProvider()
    • Method Detail

      • supports

        public boolean supports​(ILaunchDescriptor descriptor,
                                ILaunchTarget target)
                         throws org.eclipse.core.runtime.CoreException
        Description copied from interface: ILaunchConfigurationProvider
        Does this config provider provide launch configurations for the combination of descriptor and target. Note: this is called when filtering targets for a descriptor. Processing should be minimal.
        Specified by:
        supports in interface ILaunchConfigurationProvider
        Returns:
        true if target is supported, false otherwise.
        Throws:
        org.eclipse.core.runtime.CoreException
      • getLaunchConfiguration

        public org.eclipse.debug.core.ILaunchConfiguration getLaunchConfiguration​(ILaunchDescriptor descriptor,
                                                                                  ILaunchTarget target)
                                                                           throws org.eclipse.core.runtime.CoreException
        Description copied from interface: ILaunchConfigurationProvider
        Create a launch configuration for the descriptor to launch on the target.
        Specified by:
        getLaunchConfiguration in interface ILaunchConfigurationProvider
        Parameters:
        descriptor - the descriptor to create the config for
        target - the target to launch the config on
        Returns:
        launch configuration
        Throws:
        org.eclipse.core.runtime.CoreException
      • launchConfigurationAdded

        public boolean launchConfigurationAdded​(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                         throws org.eclipse.core.runtime.CoreException
        Description copied from interface: ILaunchConfigurationProvider
        A launch configuration has been added. Provider can inspect it and associate with internal map. Provider should make sure it owns this launch configuration or it can modify it to take over.
        Specified by:
        launchConfigurationAdded in interface ILaunchConfigurationProvider
        Returns:
        true of provider owns this launch configuration
        Throws:
        org.eclipse.core.runtime.CoreException
      • launchConfigurationChanged

        public boolean launchConfigurationChanged​(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                           throws org.eclipse.core.runtime.CoreException
        Description copied from interface: ILaunchConfigurationProvider
        A launch configuration has been changed. Provider can inspect it to re-evaluate its internal map. Provider should make sure it owns this launch configuration or it can modify it to take over.
        Specified by:
        launchConfigurationChanged in interface ILaunchConfigurationProvider
        Returns:
        true of provider owns this launch configuration
        Throws:
        org.eclipse.core.runtime.CoreException
      • launchConfigurationRemoved

        public boolean launchConfigurationRemoved​(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                           throws org.eclipse.core.runtime.CoreException
        Description copied from interface: ILaunchConfigurationProvider
        A launch configuration has been removed. This notification can be used to purge internal cache for example. This method is called after launch configuration has been removed from file system, so accessing its attributes won't work. If provider cannot determine if it owns it it should return false.
        Specified by:
        launchConfigurationRemoved in interface ILaunchConfigurationProvider
        Returns:
        true if provider owns this launch configuration
        Throws:
        org.eclipse.core.runtime.CoreException
      • launchDescriptorMatches

        public boolean launchDescriptorMatches​(ILaunchDescriptor descriptor,
                                               org.eclipse.debug.core.ILaunchConfiguration configuration,
                                               ILaunchTarget target)
                                        throws org.eclipse.core.runtime.CoreException
        Description copied from interface: ILaunchConfigurationProvider
        Return true if given descriptor is associated with given launch configuration. I.e. if getLaunchConfiguration(descriptor, target) returns a launch configuration, calling launchDescriptorMatches(descriptor, configuration, target) should return true. This method is used to activate descriptor when launch happens, return false all the time would mean launch would track launches of this specific descriptor (if they occur outside of launchbar).
        Specified by:
        launchDescriptorMatches in interface ILaunchConfigurationProvider
        configuration - launch configuration in question
        target - - target to match, it can be null if launch bar cannot determine target, in this case it should act as wildcard
        Returns:
        launch configuration
        Throws:
        org.eclipse.core.runtime.CoreException