Remote Systems
v6.4.1

com.ibm.etools.systems.launch
Class LaunchPlugin

java.lang.Object
  extended byAbstractUIPlugin
      extended bycom.ibm.etools.systems.core.SystemBasePlugin
          extended bycom.ibm.etools.systems.launch.LaunchPlugin

public class LaunchPlugin
extends SystemBasePlugin

The main plugin class to be used in the desktop.

See Also:
Serialized Form

Field Summary
static String copyright
           
static int DBG
           
static int ERR
           
static String HELPPREFIX
           
static String PLUGIN_ID
           
 
Fields inherited from class com.ibm.etools.systems.core.SystemBasePlugin
ICON_PATH, log
 
Constructor Summary
LaunchPlugin()
          The constructor.
 
Method Summary
static IStructuredSelection getActiveWorkbenchSelection()
          Returns the current selection, or null if none.
static LaunchPlugin getDefault()
          Returns the shared instance.
static LaunchPlugin getInstance()
           
static ResourceBundle getMessagesResourceBundle()
          Return this plugin's resource bundle that contains all messages Called by all code in this plugin.
static String getPluginID()
           
static ISystemRemoteElementAdapter getRemoteAdapter(Object o)
          Returns the implementation of ISystemRemoteElement for the given object.
static String getString(String key)
           
static ResourceBundle getStringsResourceBundle()
          Return this plugin's resource bundle that contains all dialog and wizard strings Called by all code in this plugin.
protected  void initializeImageRegistry()
          Initialize the image registry by declaring all of the required graphics.
static boolean isErrorLoggingON()
           
static boolean isTracingON()
           
 void start(org.osgi.framework.BundleContext context)
          This method is called upon plug-in activation
 void stop(org.osgi.framework.BundleContext context)
          This method is called when the plug-in is stopped
 
Methods inherited from class com.ibm.etools.systems.core.SystemBasePlugin
getActiveWorkbenchShell, getActiveWorkbenchWindow, getBaseDefault, getIconPath, getImage, getImageDescriptor, getImageDescriptorFromIDE, getInstallLocation, getLogger, getMessage, getPluginImage, getPluginImage, getString, getString, getSymbolicName, getWorkbench, getWorkspace, getWorkspaceRoot, isHeadless, loadDefaultMessageFile, loadDefaultMessageFile, loadDefaultResourceBundle, loadDefaultResourceBundle, loadMessageFile, loadMessageFile, loadPluginResourceBundle, loadResourceBundle, loadResourceBundle, logDebugMessage, logError, logError, logInfo, logMessage, logMessage, logWarning, printMessages, putImageInRegistry, scanForDuplicateMessages, showProgrammerErrorMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

PLUGIN_ID

public static final String PLUGIN_ID
See Also:
Constant Field Values

HELPPREFIX

public static final String HELPPREFIX
See Also:
Constant Field Values

DBG

public static final int DBG
See Also:
Constant Field Values

ERR

public static final int ERR
See Also:
Constant Field Values
Constructor Detail

LaunchPlugin

public LaunchPlugin()
The constructor.

Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
This method is called upon plug-in activation

Overrides:
start in class SystemBasePlugin
Throws:
Exception
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

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

Overrides:
stop in class SystemBasePlugin
Throws:
Exception
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)

getInstance

public static LaunchPlugin getInstance()

getDefault

public static LaunchPlugin getDefault()
Returns the shared instance.


getPluginID

public static String getPluginID()

isErrorLoggingON

public static boolean isErrorLoggingON()

isTracingON

public static boolean isTracingON()

getStringsResourceBundle

public static ResourceBundle getStringsResourceBundle()
Return this plugin's resource bundle that contains all dialog and wizard strings Called by all code in this plugin.


getMessagesResourceBundle

public static ResourceBundle getMessagesResourceBundle()
Return this plugin's resource bundle that contains all messages Called by all code in this plugin.


getRemoteAdapter

public static ISystemRemoteElementAdapter getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. Returns null if this object does not adaptable to this.


initializeImageRegistry

protected void initializeImageRegistry()
Initialize the image registry by declaring all of the required graphics.

Specified by:
initializeImageRegistry in class SystemBasePlugin

getActiveWorkbenchSelection

public static IStructuredSelection getActiveWorkbenchSelection()
Returns the current selection, or null if none.

Returns:
IStructuredSelection.

getString

public static String getString(String key)

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.