PTP
Release 5.0

org.eclipse.ptp.debug.core
Class PTPDebugCorePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ptp.debug.core.PTPDebugCorePlugin
All Implemented Interfaces:
BundleActivator

public class PTPDebugCorePlugin
extends org.eclipse.core.runtime.Plugin


Field Summary
static String DEBUGGER_ELEMENT
           
static Object FAMILY_EVENT
          Constant identifying the job family identifier for the background event job.
static int INTERNAL_ERROR
           
static String PDEBUGGER_EXTENSION_POINT_ID
           
static String PLUGIN_ID
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
PTPDebugCorePlugin()
           
 
Method Summary
 void addDebugEventListener(IPDebugEventListener listener)
           
 void fireDebugEvent(IPDebugEvent event)
           
 int getCommandTimeout()
           
 IPSourceLocation[] getCommonSourceLocations()
           
 PSourceLookupDirector getCommonSourceLookupDirector()
           
 IPDebugConfiguration getDebugConfiguration(String id)
           
 IPDebugConfiguration[] getDebugConfigurations()
           
static PDebugModel getDebugModel()
           
static PTPDebugCorePlugin getDefault()
           
static String getUniqueIdentifier()
           
static org.eclipse.core.resources.IWorkspace getWorkspace()
           
 boolean isDispatching()
          Returns whether debug events are being dispatched
 boolean isShuttingDown()
          Returns whether this plug-in is in the process of being shutdown.
static void log(org.eclipse.core.runtime.IStatus status)
           
static void log(String message)
           
static void log(Throwable t)
           
 void removeDebugEventListener(IPDebugEventListener listener)
           
 void setShuttingDown(boolean value)
          Sets whether this plug-in is in the process of being shutdown.
 void start(BundleContext context)
           
 void stop(BundleContext context)
           
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final String PLUGIN_ID
See Also:
Constant Field Values

INTERNAL_ERROR

public static final int INTERNAL_ERROR
See Also:
Constant Field Values

FAMILY_EVENT

public static final Object FAMILY_EVENT
Constant identifying the job family identifier for the background event job.


PDEBUGGER_EXTENSION_POINT_ID

public static final String PDEBUGGER_EXTENSION_POINT_ID
See Also:
Constant Field Values

DEBUGGER_ELEMENT

public static final String DEBUGGER_ELEMENT
See Also:
Constant Field Values
Constructor Detail

PTPDebugCorePlugin

public PTPDebugCorePlugin()
Method Detail

getDebugModel

public static PDebugModel getDebugModel()
Returns:

getDefault

public static PTPDebugCorePlugin getDefault()
Returns:

getUniqueIdentifier

public static String getUniqueIdentifier()
Returns:

getWorkspace

public static org.eclipse.core.resources.IWorkspace getWorkspace()
Returns:

log

public static void log(org.eclipse.core.runtime.IStatus status)
Parameters:
status -

log

public static void log(String message)
Parameters:
message -

log

public static void log(Throwable t)
Parameters:
t -

addDebugEventListener

public void addDebugEventListener(IPDebugEventListener listener)
Parameters:
listener -

fireDebugEvent

public void fireDebugEvent(IPDebugEvent event)
Parameters:
event -

getCommandTimeout

public int getCommandTimeout()
Returns:

getCommonSourceLocations

public IPSourceLocation[] getCommonSourceLocations()
Returns:

getCommonSourceLookupDirector

public PSourceLookupDirector getCommonSourceLookupDirector()
Returns:

getDebugConfiguration

public IPDebugConfiguration getDebugConfiguration(String id)
                                           throws org.eclipse.core.runtime.CoreException
Parameters:
id -
Returns:
Throws:
org.eclipse.core.runtime.CoreException

getDebugConfigurations

public IPDebugConfiguration[] getDebugConfigurations()
Returns:

isDispatching

public boolean isDispatching()
Returns whether debug events are being dispatched


isShuttingDown

public boolean isShuttingDown()
Returns whether this plug-in is in the process of being shutdown.

Returns:
whether this plug-in is in the process of being shutdown

removeDebugEventListener

public void removeDebugEventListener(IPDebugEventListener listener)
Parameters:
listener -

setShuttingDown

public void setShuttingDown(boolean value)
Sets whether this plug-in is in the process of being shutdown.

Parameters:
value - whether this plug-in is in the process of being shutdown

start

public void start(BundleContext context)
           throws Exception
Specified by:
start in interface BundleActivator
Overrides:
start in class org.eclipse.core.runtime.Plugin
Throws:
Exception

stop

public void stop(BundleContext context)
          throws Exception
Specified by:
stop in interface BundleActivator
Overrides:
stop in class org.eclipse.core.runtime.Plugin
Throws:
Exception

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.