Class PerTargetLaunchConfigProvider

java.lang.Object
org.eclipse.launchbar.core.AbstractLaunchConfigProvider
org.eclipse.launchbar.core.PerTargetLaunchConfigProvider
All Implemented Interfaces:
ILaunchConfigurationProvider
Direct Known Subclasses:
ProjectPerTargetLaunchConfigProvider

public abstract class PerTargetLaunchConfigProvider extends AbstractLaunchConfigProvider
  • Constructor Details

    • PerTargetLaunchConfigProvider

      public PerTargetLaunchConfigProvider()
  • Method Details

    • getManager

      protected ILaunchBarManager getManager()
    • 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()
    • 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.
      Parameters:
      configuration -
      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.
      Parameters:
      descriptor -
      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.
      Parameters:
      target -
      Throws:
      org.eclipse.core.runtime.CoreException