Package org.eclipse.launchbar.core
Class PerTargetLaunchConfigProvider
java.lang.Object
org.eclipse.launchbar.core.AbstractLaunchConfigProvider
org.eclipse.launchbar.core.PerTargetLaunchConfigProvider
- All Implemented Interfaces:
ILaunchConfigurationProvider
- Direct Known Subclasses:
ProjectPerTargetLaunchConfigProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.debug.core.ILaunchConfiguration
getLaunchConfiguration
(ILaunchDescriptor descriptor, ILaunchTarget target) Create a launch configuration for the descriptor to launch on the target.protected abstract ILaunchDescriptor
getLaunchDescriptor
(org.eclipse.debug.core.ILaunchConfiguration configuration) protected abstract ILaunchTarget
getLaunchTarget
(org.eclipse.debug.core.ILaunchConfiguration configuration) protected ILaunchBarManager
boolean
launchConfigurationAdded
(org.eclipse.debug.core.ILaunchConfiguration configuration) A launch configuration has been added.boolean
launchConfigurationChanged
(org.eclipse.debug.core.ILaunchConfiguration configuration) A launch configuration has been changed.boolean
launchConfigurationRemoved
(org.eclipse.debug.core.ILaunchConfiguration configuration) A launch configuration has been removed.void
launchDescriptorRemoved
(ILaunchDescriptor descriptor) A launch descriptor has been removed.void
launchTargetRemoved
(ILaunchTarget target) A launch target has been removed.protected boolean
Methods inherited from class org.eclipse.launchbar.core.AbstractLaunchConfigProvider
createLaunchConfiguration, launchDescriptorMatches, ownsLaunchConfiguration, populateLaunchConfiguration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.launchbar.core.ILaunchConfigurationProvider
getLaunchConfigurationType, supports
-
Constructor Details
-
PerTargetLaunchConfigProvider
public PerTargetLaunchConfigProvider()
-
-
Method Details
-
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 fortarget
- 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
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
-