Class LaunchBarManager
java.lang.Object
org.eclipse.launchbar.core.internal.LaunchBarManager
- All Implemented Interfaces:
org.eclipse.debug.core.ILaunchConfigurationListener,ILaunchBarManager,ILaunchTargetListener
The brains of the launch bar.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ILaunchBarListener listener) Add a listener that can react to launch bar changesvoiddispose()org.eclipse.debug.core.ILaunchConfigurationReturns the active launch configuration as derived from the active descriptor and target.Returns the active launch descriptor.org.eclipse.debug.core.ILaunchModeReturns the active launch mode.Returns the active launch target.Return the type id for the given launch descriptor type.org.eclipse.debug.core.ILaunchConfigurationgetLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target) Returns the launch configuration derived from the given launch descriptor and target.org.eclipse.debug.core.ILaunchConfigurationTypegetLaunchConfigurationType(ILaunchDescriptor descriptor, ILaunchTarget target) Returns the launch configuration type used for configurations that are derived from the given launch descriptor and launch target without creating a launch configuration.Returns all know launch descriptors.org.eclipse.debug.core.ILaunchMode[]Return all launch modes for the active launch descriptor and active launch target.getLaunchTargets(ILaunchDescriptor descriptor) Return all launch targets supported by the given launch descriptor.voidinit()voidlaunchConfigurationAdded(org.eclipse.debug.core.ILaunchConfiguration configuration) voidlaunchConfigurationChanged(org.eclipse.debug.core.ILaunchConfiguration configuration) voidlaunchConfigurationRemoved(org.eclipse.debug.core.ILaunchConfiguration configuration) launchObjectAdded(Object launchObject) A launch object has been added.voidlaunchObjectChanged(Object launchObject) A launch object has changed in some way that affects the launch bar.voidlaunchObjectRemoved(Object launchObject) A launch object has been removed.voidlaunchTargetAdded(ILaunchTarget target) A launch target was added.voidlaunchTargetRemoved(ILaunchTarget target) A launch target was removed.voidremoveListener(ILaunchBarListener listener) Remove a listenervoidsetActiveLaunchDescriptor(ILaunchDescriptor descriptor) Set the active launch descriptor.voidsetActiveLaunchMode(org.eclipse.debug.core.ILaunchMode mode) Set the active launch mode.voidsetActiveLaunchTarget(ILaunchTarget target) Set the active launch target.voidsetLaunchMode(ILaunchDescriptor desc, org.eclipse.debug.core.ILaunchMode mode) Sets the preferred mode for the given descriptorvoidsetLaunchTarget(ILaunchDescriptor desc, ILaunchTarget target) Sets preferred target for launch descriptorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.launchbar.core.target.ILaunchTargetListener
launchTargetStatusChanged
-
Constructor Details
-
LaunchBarManager
public LaunchBarManager() -
LaunchBarManager
public LaunchBarManager(boolean doInit)
-
-
Method Details
-
init
public void init() throws org.eclipse.core.runtime.CoreException- Throws:
org.eclipse.core.runtime.CoreException
-
getDescriptorTypeId
Description copied from interface:ILaunchBarManagerReturn the type id for the given launch descriptor type. This is defined in the extension point that defines the type.- Specified by:
getDescriptorTypeIdin interfaceILaunchBarManager- Parameters:
type- descriptor type- Returns:
- the type id for the descriptor type
-
getLaunchConfigurationType
public org.eclipse.debug.core.ILaunchConfigurationType getLaunchConfigurationType(ILaunchDescriptor descriptor, ILaunchTarget target) throws org.eclipse.core.runtime.CoreException Description copied from interface:ILaunchBarManagerReturns the launch configuration type used for configurations that are derived from the given launch descriptor and launch target without creating a launch configuration.- Specified by:
getLaunchConfigurationTypein interfaceILaunchBarManager- Parameters:
descriptor- launch descriptortarget- launch target- Returns:
- launch configuration type
- Throws:
org.eclipse.core.runtime.CoreException
-
launchObjectAdded
Description copied from interface:ILaunchBarManagerA launch object has been added. Create a matching launch descriptor if available.- Specified by:
launchObjectAddedin interfaceILaunchBarManager- Returns:
- the launch descriptor that got created, null of none was
-
launchObjectRemoved
Description copied from interface:ILaunchBarManagerA launch object has been removed. Remove the associated launch descriptor if there is one.- Specified by:
launchObjectRemovedin interfaceILaunchBarManager- Throws:
org.eclipse.core.runtime.CoreException
-
launchObjectChanged
Description copied from interface:ILaunchBarManagerA launch object has changed in some way that affects the launch bar.- Specified by:
launchObjectChangedin interfaceILaunchBarManager- Parameters:
launchObject-- Throws:
org.eclipse.core.runtime.CoreException
-
getLaunchDescriptors
Description copied from interface:ILaunchBarManagerReturns all know launch descriptors.- Specified by:
getLaunchDescriptorsin interfaceILaunchBarManager- Returns:
- launch descriptors
-
getActiveLaunchDescriptor
Description copied from interface:ILaunchBarManagerReturns the active launch descriptor.- Specified by:
getActiveLaunchDescriptorin interfaceILaunchBarManager- Returns:
- active launch descriptor
-
setActiveLaunchDescriptor
public void setActiveLaunchDescriptor(ILaunchDescriptor descriptor) throws org.eclipse.core.runtime.CoreException Description copied from interface:ILaunchBarManagerSet the active launch descriptor.- Specified by:
setActiveLaunchDescriptorin interfaceILaunchBarManager- Parameters:
descriptor- launch descriptor- Throws:
org.eclipse.core.runtime.CoreException
-
getLaunchModes
public org.eclipse.debug.core.ILaunchMode[] getLaunchModes() throws org.eclipse.core.runtime.CoreExceptionDescription copied from interface:ILaunchBarManagerReturn all launch modes for the active launch descriptor and active launch target.- Specified by:
getLaunchModesin interfaceILaunchBarManager- Returns:
- launch modes
- Throws:
org.eclipse.core.runtime.CoreException
-
getActiveLaunchMode
public org.eclipse.debug.core.ILaunchMode getActiveLaunchMode()Description copied from interface:ILaunchBarManagerReturns the active launch mode.- Specified by:
getActiveLaunchModein interfaceILaunchBarManager- Returns:
- active launch mode
-
setLaunchMode
public void setLaunchMode(ILaunchDescriptor desc, org.eclipse.debug.core.ILaunchMode mode) throws org.eclipse.core.runtime.CoreException Sets the preferred mode for the given descriptor- Parameters:
desc-mode-- Throws:
org.eclipse.core.runtime.CoreException
-
setActiveLaunchMode
public void setActiveLaunchMode(org.eclipse.debug.core.ILaunchMode mode) throws org.eclipse.core.runtime.CoreException Description copied from interface:ILaunchBarManagerSet the active launch mode.- Specified by:
setActiveLaunchModein interfaceILaunchBarManager- Parameters:
mode- launch mode- Throws:
org.eclipse.core.runtime.CoreException
-
getLaunchTargets
Description copied from interface:ILaunchBarManagerReturn all launch targets supported by the given launch descriptor.- Specified by:
getLaunchTargetsin interfaceILaunchBarManager- Parameters:
descriptor- launch descriptor- Returns:
- launch targets
-
getActiveLaunchTarget
Description copied from interface:ILaunchBarManagerReturns the active launch target.- Specified by:
getActiveLaunchTargetin interfaceILaunchBarManager- Returns:
- active launch target
-
setLaunchTarget
public void setLaunchTarget(ILaunchDescriptor desc, ILaunchTarget target) throws org.eclipse.core.runtime.CoreException Sets preferred target for launch descriptor- Parameters:
desc-target-- Throws:
org.eclipse.core.runtime.CoreException
-
setActiveLaunchTarget
public void setActiveLaunchTarget(ILaunchTarget target) throws org.eclipse.core.runtime.CoreException Description copied from interface:ILaunchBarManagerSet the active launch target.- Specified by:
setActiveLaunchTargetin interfaceILaunchBarManager- Parameters:
target- launch target- Throws:
org.eclipse.core.runtime.CoreException
-
getActiveLaunchConfiguration
public org.eclipse.debug.core.ILaunchConfiguration getActiveLaunchConfiguration() throws org.eclipse.core.runtime.CoreExceptionDescription copied from interface:ILaunchBarManagerReturns the active launch configuration as derived from the active descriptor and target.- Specified by:
getActiveLaunchConfigurationin interfaceILaunchBarManager- Returns:
- active launch configuration
- 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:ILaunchBarManagerReturns the launch configuration derived from the given launch descriptor and target.- Specified by:
getLaunchConfigurationin interfaceILaunchBarManager- Parameters:
descriptor- launch descriptortarget- launch target- Returns:
- launch configuration
- Throws:
org.eclipse.core.runtime.CoreException
-
addListener
Description copied from interface:ILaunchBarManagerAdd a listener that can react to launch bar changes- Specified by:
addListenerin interfaceILaunchBarManager- Parameters:
listener-
-
removeListener
Description copied from interface:ILaunchBarManagerRemove a listener- Specified by:
removeListenerin interfaceILaunchBarManager- Parameters:
listener-
-
launchConfigurationAdded
public void launchConfigurationAdded(org.eclipse.debug.core.ILaunchConfiguration configuration) - Specified by:
launchConfigurationAddedin interfaceorg.eclipse.debug.core.ILaunchConfigurationListener
-
launchConfigurationRemoved
public void launchConfigurationRemoved(org.eclipse.debug.core.ILaunchConfiguration configuration) - Specified by:
launchConfigurationRemovedin interfaceorg.eclipse.debug.core.ILaunchConfigurationListener
-
launchConfigurationChanged
public void launchConfigurationChanged(org.eclipse.debug.core.ILaunchConfiguration configuration) - Specified by:
launchConfigurationChangedin interfaceorg.eclipse.debug.core.ILaunchConfigurationListener
-
dispose
public void dispose() -
launchTargetAdded
Description copied from interface:ILaunchTargetListenerA launch target was added.- Specified by:
launchTargetAddedin interfaceILaunchTargetListener- Parameters:
target- the new launch target
-
launchTargetRemoved
Description copied from interface:ILaunchTargetListenerA launch target was removed.- Specified by:
launchTargetRemovedin interfaceILaunchTargetListener- Parameters:
target- the target about to be removed.
-