|
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 String |
EXTENSION_POINT_ID
|
static 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(String message,
org.eclipse.core.runtime.IStatus status)
Convenience method to create an error dialog given an IStatus. |
static void |
errorDialog(String message,
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(String path)
Returns an image descriptor for the image file at the given plug-in relative path. |
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 String |
getResourceString(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 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(Throwable e)
Logs an internal error with the specified throwable |
static void |
logErrorMessage(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(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 String EXTENSION_POINT_ID
public static final String RESOURCE_BUNDLE
Constructor Detail |
---|
public PTPLaunchPlugin()
Method Detail |
---|
public static void errorDialog(String message, org.eclipse.core.runtime.IStatus status)
message
- status
- public static void errorDialog(String message, 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(String path)
path
- the path
public static String getResourceString(String key)
public static String getUniqueIdentifier()
public static void log(org.eclipse.core.runtime.IStatus status)
status
- status to logpublic static void log(Throwable e)
e
- the exception to be loggedpublic static void logErrorMessage(String message)
message
- the error message to logpublic void addLaunchNotificationListener(ILaunchNotification listener)
listener
- listener to addpublic 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.CoreException
public 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 removepublic void start(BundleContext context) throws Exception
start
in interface BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
Exception
public void stop(BundleContext context) throws Exception
stop
in interface BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
Exception
public org.eclipse.core.runtime.IPath verifyResource(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 |