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
public abstract class PerTargetLaunchConfigProvider extends AbstractLaunchConfigProvider
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ILaunchDescriptor,java.util.Map<ILaunchTarget,org.eclipse.debug.core.ILaunchConfiguration>>configMapprivate java.util.Map<ILaunchDescriptor,org.eclipse.debug.core.ILaunchConfiguration>defaultConfigsprivate java.util.Collection<org.eclipse.debug.core.ILaunchConfiguration>ownedConfigs
-
Constructor Summary
Constructors Constructor Description PerTargetLaunchConfigProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private booleanaddLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration configuration)org.eclipse.debug.core.ILaunchConfigurationgetLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target)Create a launch configuration for the descriptor to launch on the target.protected abstract ILaunchDescriptorgetLaunchDescriptor(org.eclipse.debug.core.ILaunchConfiguration configuration)protected abstract ILaunchTargetgetLaunchTarget(org.eclipse.debug.core.ILaunchConfiguration configuration)protected ILaunchBarManagergetManager()booleanlaunchConfigurationAdded(org.eclipse.debug.core.ILaunchConfiguration configuration)A launch configuration has been added.booleanlaunchConfigurationChanged(org.eclipse.debug.core.ILaunchConfiguration configuration)A launch configuration has been changed.booleanlaunchConfigurationRemoved(org.eclipse.debug.core.ILaunchConfiguration configuration)A launch configuration has been removed.voidlaunchDescriptorRemoved(ILaunchDescriptor descriptor)A launch descriptor has been removed.voidlaunchTargetRemoved(ILaunchTarget target)A launch target has been removed.protected booleanprovidesForNullTarget()-
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
-
-
-
-
Field Detail
-
configMap
private final java.util.Map<ILaunchDescriptor,java.util.Map<ILaunchTarget,org.eclipse.debug.core.ILaunchConfiguration>> configMap
-
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
-
-
Method Detail
-
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:ILaunchConfigurationProviderCreate 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()
-
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.CoreExceptionDescription copied from interface:ILaunchConfigurationProviderA 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.CoreExceptionDescription copied from interface:ILaunchConfigurationProviderA 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.CoreExceptionDescription copied from interface:ILaunchConfigurationProviderA 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:ILaunchConfigurationProviderA 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:ILaunchConfigurationProviderA launch target has been removed. Remove any launch configurations that were created for it.- Throws:
org.eclipse.core.runtime.CoreException
-
-