|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.ptp.launch.PTPLaunchPlugin
public class PTPLaunchPlugin
The main plugin class to be used in the desktop.
| Field Summary | |
|---|---|
static java.lang.String |
EXTENSION_POINT_ID
|
static java.lang.String |
RESOURCE_BUNDLE
|
| Fields inherited from class org.eclipse.core.runtime.Plugin |
|---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
|---|---|
PTPLaunchPlugin()
The constructor. |
|
| Method Summary | |
|---|---|
void |
addLaunchNotificationListener(ILaunchNotification listener)
Add a listener for ILaunchNotification events |
static void |
errorDialog(java.lang.String message,
org.eclipse.core.runtime.IStatus status)
Convenience method to create an error dialog given an IStatus. |
static void |
errorDialog(java.lang.String message,
java.lang.Throwable t)
Convenience method to create an error dialog given a message and Throwable. |
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
Convenience method to get the currently active page |
static org.eclipse.swt.widgets.Shell |
getActiveWorkbenchShell()
Returns the active workbench shell or null if none |
static org.eclipse.ui.IWorkbenchWindow |
getActiveWorkbenchWindow()
Convenience method to get the currently active workbench window |
static PTPLaunchPlugin |
getDefault()
Returns the shared instance. |
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, |
org.eclipse.ptp.rmsystem.IResourceManager |
getResourceManager(org.eclipse.debug.core.ILaunchConfiguration configuration)
Find the resource manager that corresponds to the unique name specified in the configuration |
static java.lang.String |
getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
org.eclipse.ptp.launch.ui.extensions.AbstractRMLaunchConfigurationFactory |
getRMLaunchConfigurationFactory(org.eclipse.ptp.rmsystem.IResourceManager rm)
Find the launch configuration factory for a resource manager |
static java.lang.String |
getUniqueIdentifier()
Get a unique identifier for this plugin |
static void |
log(org.eclipse.core.runtime.IStatus status)
Logs the specified status with this plug-in's log. |
static void |
log(java.lang.Throwable e)
Logs an internal error with the specified throwable |
static void |
logErrorMessage(java.lang.String message)
Logs an internal error with the specified message. |
void |
notifyJobStateChange(org.eclipse.ptp.core.elements.IPJob job,
org.eclipse.ptp.core.elements.attributes.JobAttributes.State state)
Notify listeners when a job changes status |
void |
removeLaunchNotificationListener(ILaunchNotification listener)
Remove a listener for ILaunchNotification events |
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 |
org.eclipse.core.runtime.IPath |
verifyResource(java.lang.String path,
org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Verify that the resource "path" actually exists. |
| Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
|---|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, 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 |
|---|
public static final java.lang.String EXTENSION_POINT_ID
public static final java.lang.String RESOURCE_BUNDLE
| Constructor Detail |
|---|
public PTPLaunchPlugin()
| Method Detail |
|---|
public static void errorDialog(java.lang.String message,
org.eclipse.core.runtime.IStatus status)
message - status -
public static void errorDialog(java.lang.String message,
java.lang.Throwable t)
message - t - public static org.eclipse.ui.IWorkbenchPage getActivePage()
public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
null if none
null if nonepublic static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
public static PTPLaunchPlugin getDefault()
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
path - the path
public static java.lang.String getResourceString(java.lang.String key)
public static java.lang.String getUniqueIdentifier()
public static void log(org.eclipse.core.runtime.IStatus status)
status - status to logpublic static void log(java.lang.Throwable e)
e - the exception to be loggedpublic static void logErrorMessage(java.lang.String message)
message - the error message to logpublic void addLaunchNotificationListener(ILaunchNotification listener)
listener - listener to addpublic java.util.ResourceBundle getResourceBundle()
public org.eclipse.ptp.rmsystem.IResourceManager getResourceManager(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreExceptionpublic org.eclipse.ptp.launch.ui.extensions.AbstractRMLaunchConfigurationFactory getRMLaunchConfigurationFactory(org.eclipse.ptp.rmsystem.IResourceManager rm)
rm - resource manager
public void notifyJobStateChange(org.eclipse.ptp.core.elements.IPJob job,
org.eclipse.ptp.core.elements.attributes.JobAttributes.State state)
job - job that has changed statuspublic void removeLaunchNotificationListener(ILaunchNotification listener)
listener - listener to remove
public void start(BundleContext context)
throws java.lang.Exception
start in interface BundleActivatorstart in class org.eclipse.ui.plugin.AbstractUIPluginjava.lang.Exception
public void stop(BundleContext context)
throws java.lang.Exception
stop in interface BundleActivatorstop in class org.eclipse.ui.plugin.AbstractUIPluginjava.lang.Exception
public org.eclipse.core.runtime.IPath verifyResource(java.lang.String path,
org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
path - path to checkconfiguration - launch configurationmonitor - progress monitor
org.eclipse.core.runtime.CoreException - if the resource doesn't exist or the monitor is cancelled
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||