TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.tptp.trace.ui.internal.launcher.core
Class DataCollectorManager

java.lang.Object
  extended by org.eclipse.tptp.trace.ui.internal.launcher.core.DataCollectorManager

public class DataCollectorManager
extends java.lang.Object

Loads the registered data collectors and provides accessor methods for clients to retrieve them.


Method Summary
 DataCollector getDataCollector(java.lang.String datacollectorID)
           
 DataCollectorAssociation getDataCollectorAssociator(java.lang.String launchConfigurationID)
          Lookup and return a data collector associator entry for the launchConfigurationID, if it exists.
 org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorBaseLauncher getDataCollectorLaunchDelegate(java.lang.String dataCollectorID, org.eclipse.debug.core.ILaunchConfiguration configurationType)
          Returns the launch delegate of the data collector with the id 'dataCollectorID' for the launch configuration 'configurationType'.
 DataCollector[] getDataCollectors()
           
static DataCollectorManager getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DataCollectorManager getInstance()

getDataCollector

public DataCollector getDataCollector(java.lang.String datacollectorID)

getDataCollectorAssociator

public DataCollectorAssociation getDataCollectorAssociator(java.lang.String launchConfigurationID)
Lookup and return a data collector associator entry for the launchConfigurationID, if it exists. If an association is not found, then a default one is returned (to support backward compatibility)

Parameters:
launchConfigurationID - The launch configuration ID.
Returns:
A DataCollectorAssociation with id 'launchConfigurationID'

getDataCollectorLaunchDelegate

public org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorBaseLauncher getDataCollectorLaunchDelegate(java.lang.String dataCollectorID,
                                                                                                                org.eclipse.debug.core.ILaunchConfiguration configurationType)
                                                                                                         throws org.eclipse.core.runtime.CoreException
Returns the launch delegate of the data collector with the id 'dataCollectorID' for the launch configuration 'configurationType'. If the launch delegate cannot be resolved, then null will be returned.

Parameters:
currentDataCollectorID - The ID of the data collector
configurationType - The launch configuration type
Returns:
The launch delegate of the data collector with id 'dataCollectorID'
Throws:
org.eclipse.core.runtime.CoreException - If this method fails

getDataCollectors

public DataCollector[] getDataCollectors()

TPTP 4.6.0 Platform Project
Internal API Specification