Class PerTargetLaunchConfigProvider

    • Field Detail

      • defaultConfigs

        private final java.util.Map<ILaunchDescriptor,​org.eclipse.debug.core.ILaunchConfiguration> defaultConfigs
      • ownedConfigs

        private final java.util.Collection<org.eclipse.debug.core.ILaunchConfiguration> ownedConfigs
    • Constructor Detail

      • PerTargetLaunchConfigProvider

        public PerTargetLaunchConfigProvider()
    • Method Detail

      • 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.
        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
      • getLaunchDescriptor

        protected abstract ILaunchDescriptor getLaunchDescriptor​(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                                          throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException
      • getLaunchTarget

        protected abstract ILaunchTarget getLaunchTarget​(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                                  throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException
      • providesForNullTarget

        protected boolean providesForNullTarget()
      • addLaunchConfiguration

        private boolean addLaunchConfiguration​(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                        throws org.eclipse.core.runtime.CoreException
        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.
        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.
        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.
        Returns:
        true if provider owns this launch configuration
        Throws:
        org.eclipse.core.runtime.CoreException
      • launchDescriptorRemoved

        public void launchDescriptorRemoved​(ILaunchDescriptor descriptor)
                                     throws org.eclipse.core.runtime.CoreException
        Description copied from interface: ILaunchConfigurationProvider
        A launch descriptor has been removed. Remove any launch configurations that were created for it.
        Throws:
        org.eclipse.core.runtime.CoreException
      • launchTargetRemoved

        public void launchTargetRemoved​(ILaunchTarget target)
                                 throws org.eclipse.core.runtime.CoreException
        Description copied from interface: ILaunchConfigurationProvider
        A launch target has been removed. Remove any launch configurations that were created for it.
        Throws:
        org.eclipse.core.runtime.CoreException