PTP
Release 5.0

org.eclipse.ptp.debug.ui
Class PTPDebugUIPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.eclipse.ptp.debug.ui.PTPDebugUIPlugin
All Implemented Interfaces:
BundleActivator

public class PTPDebugUIPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin


Field Summary
static java.lang.String DEBUGGERID_ELEMENT
           
protected  java.util.Map<java.lang.String,org.eclipse.core.runtime.IConfigurationElement> fDebuggerPageMap
           
static java.lang.String PDEBUGGERCONFIGURATION_EXTENSION_POINT_ID
           
static java.lang.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
PTPDebugUIPlugin()
          The constructor.
 
Method Summary
static org.eclipse.debug.core.model.IPersistableSourceLocator createDefaultSourceLocator()
          Create a default source locator
static void errorDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, org.eclipse.core.runtime.IStatus s)
          Show error dialog
static void errorDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, java.lang.String message, org.eclipse.core.runtime.IStatus s)
          Show error dialog
static void errorDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, java.lang.String message, java.lang.Throwable t)
          Show error dialog
static void errorDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, java.lang.Throwable t)
          Show error dialog
static void errorDialog(java.lang.String title, org.eclipse.core.runtime.IStatus s)
          Show error dialog
static void errorDialog(java.lang.String title, java.lang.Throwable t)
          Show error dialog
static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
          Get active workbench shell
static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
          Get active workbench window
 ILaunchConfigurationTab getDebuggerPage(java.lang.String debuggerID)
          Get launch debugger tab
static IDebugModelPresentation getDebugModelPresentation()
           
static PTPDebugUIPlugin getDefault()
          Returns the shared instance.
static org.eclipse.swt.widgets.Display getDisplay()
          Get display
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
 java.util.ResourceBundle getResourceBundle()
          Returns the plugin's resource bundle,
static java.lang.String getResourceString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static org.eclipse.swt.widgets.Shell getShell()
          Get shell
static org.eclipse.swt.widgets.Display getStandardDisplay()
          Get standard display
static UIDebugManager getUIDebugManager()
           
static java.lang.String getUniqueIdentifier()
          Get unique identifier of plugin
protected  void initializeDebuggerPageMap()
          Initialize launch debugger page
protected  void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg)
           
static boolean isPTPDebugPerspective()
          Test if the current perspective is the PTP debug perspective
static boolean isPTPPerspective()
          Test if the current perspective is one supplied by PTP
static void log(org.eclipse.core.runtime.IStatus status)
          Log
static void log(java.lang.String msg)
          Log
static void log(java.lang.Throwable e)
          Log
 void start(BundleContext context)
          This method is called upon plug-in activation
 void stop(BundleContext context)
          This method is called when the plug-in is stopped
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, 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 java.lang.String PLUGIN_ID
See Also:
Constant Field Values

PDEBUGGERCONFIGURATION_EXTENSION_POINT_ID

public static final java.lang.String PDEBUGGERCONFIGURATION_EXTENSION_POINT_ID
See Also:
Constant Field Values

DEBUGGERID_ELEMENT

public static final java.lang.String DEBUGGERID_ELEMENT
See Also:
Constant Field Values

fDebuggerPageMap

protected java.util.Map<java.lang.String,org.eclipse.core.runtime.IConfigurationElement> fDebuggerPageMap
Constructor Detail

PTPDebugUIPlugin

public PTPDebugUIPlugin()
The constructor.

Method Detail

createDefaultSourceLocator

public static org.eclipse.debug.core.model.IPersistableSourceLocator createDefaultSourceLocator()
Create a default source locator

Returns:
default source locator

errorDialog

public static void errorDialog(org.eclipse.swt.widgets.Shell shell,
                               java.lang.String title,
                               org.eclipse.core.runtime.IStatus s)
Show error dialog

Parameters:
shell -
title -
s -

errorDialog

public static void errorDialog(org.eclipse.swt.widgets.Shell shell,
                               java.lang.String title,
                               java.lang.String message,
                               org.eclipse.core.runtime.IStatus s)
Show error dialog

Parameters:
shell -
title -
message -
s -

errorDialog

public static void errorDialog(org.eclipse.swt.widgets.Shell shell,
                               java.lang.String title,
                               java.lang.String message,
                               java.lang.Throwable t)
Show error dialog

Parameters:
shell -
title -
message -
t -

errorDialog

public static void errorDialog(org.eclipse.swt.widgets.Shell shell,
                               java.lang.String title,
                               java.lang.Throwable t)
Show error dialog

Parameters:
shell -
title -
t -

errorDialog

public static void errorDialog(java.lang.String title,
                               org.eclipse.core.runtime.IStatus s)
Show error dialog

Parameters:
title -
s -

errorDialog

public static void errorDialog(java.lang.String title,
                               java.lang.Throwable t)
Show error dialog

Parameters:
title -
t -

getActiveWorkbenchShell

public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
Get active workbench shell

Returns:
active workbench shell

getActiveWorkbenchWindow

public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
Get active workbench window

Returns:
active workbench window

getDebugModelPresentation

public static IDebugModelPresentation getDebugModelPresentation()
Returns:
Since:
4.0

getDefault

public static PTPDebugUIPlugin getDefault()
Returns the shared instance.


getDisplay

public static org.eclipse.swt.widgets.Display getDisplay()
Get display

Returns:
display

getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path.

Parameters:
path - the path
Returns:
the image descriptor

getResourceString

public static java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.


getShell

public static org.eclipse.swt.widgets.Shell getShell()
Get shell

Returns:
shell

getStandardDisplay

public static org.eclipse.swt.widgets.Display getStandardDisplay()
Get standard display

Returns:
display

getUIDebugManager

public static UIDebugManager getUIDebugManager()

getUniqueIdentifier

public static java.lang.String getUniqueIdentifier()
Get unique identifier of plugin

Returns:
plugin identifier

isPTPDebugPerspective

public static boolean isPTPDebugPerspective()
Test if the current perspective is the PTP debug perspective

Returns:
true if the current perspective is the PTP debug perspective

isPTPPerspective

public static boolean isPTPPerspective()
Test if the current perspective is one supplied by PTP

Returns:
true if the current perspective is supplied by PTP

log

public static void log(org.eclipse.core.runtime.IStatus status)
Log

Parameters:
status -

log

public static void log(java.lang.String msg)
Log

Parameters:
msg -

log

public static void log(java.lang.Throwable e)
Log

Parameters:
e -

getDebuggerPage

public ILaunchConfigurationTab getDebuggerPage(java.lang.String debuggerID)
                                        throws org.eclipse.core.runtime.CoreException
Get launch debugger tab

Parameters:
debuggerID -
Returns:
Throws:
org.eclipse.core.runtime.CoreException

getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,


start

public void start(BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Specified by:
start in interface BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

stop

public void stop(BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Specified by:
stop in interface BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

initializeDebuggerPageMap

protected void initializeDebuggerPageMap()
Initialize launch debugger page


initializeImageRegistry

protected void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg)
Overrides:
initializeImageRegistry in class org.eclipse.ui.plugin.AbstractUIPlugin

PTP
Release 5.0

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