PTP
Release 5.0

org.eclipse.ptp.ui
Class PTPUIPlugin

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

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

The main PTP user interface plugin.


Field Summary
static String PLUGIN_ID
           
static String RUNTIME_MODEL_PRESENTATION_EXTENSION_POINT_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
PTPUIPlugin()
           
 
Method Summary
static org.eclipse.ui.IWorkbenchPage getActivePage()
          Get the currently active workbench page from the active workbench window.
static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
          Gets the currently active workbench window
static PTPUIPlugin getDefault()
          Returns the shared instance.
static org.eclipse.swt.widgets.Display getDisplay()
          Get the display instance.
 IJobManager getJobManager()
          Get the job manager instance
 IMachineManager getMachineManager()
          Get the machine manager instance
 RMManager getRMManager()
          Get the RM manager instance
 IRuntimeModelPresentation getRuntimeModelPresentation(String id)
          Get the runtime model presentation for the given resource manager
static String getUniqueIdentifier()
          Get a unique identifier for this plugin (used for logging)
static void log(org.eclipse.core.runtime.IStatus status)
          Generate a log message given an IStatus object
static void log(String msg)
          Generate a log message
static void log(Throwable e)
          Generate a log message for an exception
 void start(BundleContext context)
           
 void stop(BundleContext context)
           
 
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

PLUGIN_ID

public static final String PLUGIN_ID
See Also:
Constant Field Values

RUNTIME_MODEL_PRESENTATION_EXTENSION_POINT_ID

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

PTPUIPlugin

public PTPUIPlugin()
Method Detail

getActivePage

public static org.eclipse.ui.IWorkbenchPage getActivePage()
Get the currently active workbench page from the active workbench window.

Returns:
currently active workbench page

getActiveWorkbenchWindow

public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
Gets the currently active workbench window

Returns:
the active workbench window

getDefault

public static PTPUIPlugin getDefault()
Returns the shared instance.


getDisplay

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

Returns:
the display instance

getUniqueIdentifier

public static String getUniqueIdentifier()
Get a unique identifier for this plugin (used for logging)

Returns:
unique identifier

log

public static void log(org.eclipse.core.runtime.IStatus status)
Generate a log message given an IStatus object

Parameters:
status - IStatus object

log

public static void log(String msg)
Generate a log message

Parameters:
msg - message to log

log

public static void log(Throwable e)
Generate a log message for an exception

Parameters:
e - exception used to generate message

getJobManager

public IJobManager getJobManager()
Get the job manager instance

Returns:
job manager

getMachineManager

public IMachineManager getMachineManager()
Get the machine manager instance

Returns:
machine manager

getRMManager

public RMManager getRMManager()
Get the RM manager instance

Returns:
RM manager

getRuntimeModelPresentation

public IRuntimeModelPresentation getRuntimeModelPresentation(String id)
Get the runtime model presentation for the given resource manager

Parameters:
id - resource manager ID
Returns:
runtime model presentation

start

public void start(BundleContext context)
           throws Exception
Specified by:
start in interface BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
Exception

stop

public void stop(BundleContext context)
          throws Exception
Specified by:
stop in interface BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
Exception

PTP
Release 5.0

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