iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.core
Class ISeriesSystemPlugin

java.lang.Object
  extended byorg.eclipse.core.runtime.Plugin
      extended byorg.eclipse.ui.plugin.AbstractUIPlugin
          extended bycom.ibm.etools.systems.core.SystemBasePlugin
              extended bycom.ibm.etools.iseries.core.ISeriesSystemPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class ISeriesSystemPlugin
extends com.ibm.etools.systems.core.SystemBasePlugin

Plugin for the IBM-supplied ISeries Remote Systems


Field Summary
static String Copyright
           
static String HELPPREFIX
           
 
Fields inherited from class com.ibm.etools.systems.core.SystemBasePlugin
copyright, ICON_PATH, log
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
ISeriesSystemPlugin()
          Constructor for SystemsPlugin
 
Method Summary
 ISeriesSystemViewAdapterFactory getAdapterFactory()
          quick access to our adapter factory
static ISeriesSystemPlugin getDefault()
          Return singleton.
static ImageDescriptor getImageDescriptorByFileName(String strImage)
          Returns the image descriptor given the file name.
static ISeriesSystemPlugin getInstance()
          Same as getDefault().
static com.ibm.etools.systems.core.messages.SystemMessage getPluginMessage(String msgId)
          retrieve a message from this plugin's message file
static com.ibm.etools.systems.core.messages.SystemMessageFile getPluginMessageFile()
          Return our message file
static String getProductAcronym()
          Return the acronym for the overall workbench product.
static String getProductName()
          Return the name for the overall workbench product.
static String getProductShortName()
          Return the short name for the overall workbench product.
static ResourceBundle getResourceBundle()
          Return this plugin's resource bundle.
static String getString(String key)
          Get a string from this plugin's resource bundle.
static String getString(String key, String defaultString)
          Get a string from this plugin's resource bundle.
static String getStringForCodeAssist(String key)
          Get a string from this plugin's resource bundle.
static String getStringForPlugin(String key)
          Get a string from this plugin's resource bundle.
protected  void initializeImageRegistry()
          Initialize the image registry by declaring all of the required graphics.
static boolean isAdvancedEdition()
          Check whether we are running under the standard or advanced edition of the product.
protected static InputStream loadInputStream(String strFilename)
          iserieseditor Returns the resource bundle given its filename without file extension.
static Properties loadProperties(String strFilename)
          iserieseditor Returns the properties object given its filename without file extension.
 boolean showView(String strViewId)
          iserieseditor Shows the view given a view identifier.
 void start(org.osgi.framework.BundleContext context)
          Previously this was the startup() method, moved to start() for eclipse 3.0.
 void stop(org.osgi.framework.BundleContext context)
           
 
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 org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, 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

Copyright

public static final String Copyright
See Also:
Constant Field Values

HELPPREFIX

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

ISeriesSystemPlugin

public ISeriesSystemPlugin()
Constructor for SystemsPlugin

Method Detail

getDefault

public static ISeriesSystemPlugin getDefault()
Return singleton. Same as inherited getBaseDefault() but returned object is typed as SystemPlugin versus SystemBasePlugin.


getInstance

public static ISeriesSystemPlugin getInstance()
Same as getDefault().


getString

public static String getString(String key)
Get a string from this plugin's resource bundle. If not found, stack trace info is placed in the plugin's log file to help pinpoint the offending code.


getStringForCodeAssist

public static String getStringForCodeAssist(String key)
Get a string from this plugin's resource bundle. If not found, stack trace info is placed in the plugin's log file to help pinpoint the offending code.


getStringForPlugin

public static String getStringForPlugin(String key)
Get a string from this plugin's resource bundle. If not found, stack trace info is placed in the plugin's log file to help pinpoint the offending code.


getString

public static String getString(String key,
                               String defaultString)
Get a string from this plugin's resource bundle. If not found, use the given English default


getResourceBundle

public static ResourceBundle getResourceBundle()
Return this plugin's resource bundle. Called by all code in this plugin.


getProductName

public static String getProductName()
Return the name for the overall workbench product. This method detects whether the standard or advanced edition is installed and corresponding name.

Since:
RWDi 6.0

getProductShortName

public static String getProductShortName()
Return the short name for the overall workbench product. This method detects whether the standard or advanced edition is installed and corresponding short name.

Since:
RWDi 6.0

getProductAcronym

public static String getProductAcronym()
Return the acronym for the overall workbench product. This method detects whether the standard or advanced edition is installed and corresponding acronym.

Since:
RWDi 6.0

initializeImageRegistry

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


getImageDescriptorByFileName

public static ImageDescriptor getImageDescriptorByFileName(String strImage)
Returns the image descriptor given the file name.


showView

public boolean showView(String strViewId)
iserieseditor Shows the view given a view identifier.


start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Previously this was the startup() method, moved to start() for eclipse 3.0.

Throws:
Exception
See Also:
SystemBasePlugin.start(org.osgi.framework.BundleContext)

getAdapterFactory

public ISeriesSystemViewAdapterFactory getAdapterFactory()
quick access to our adapter factory


stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Throws:
Exception

loadProperties

public static Properties loadProperties(String strFilename)
iserieseditor Returns the properties object given its filename without file extension.


loadInputStream

protected static InputStream loadInputStream(String strFilename)
iserieseditor Returns the resource bundle given its filename without file extension.


getPluginMessageFile

public static com.ibm.etools.systems.core.messages.SystemMessageFile getPluginMessageFile()
Return our message file


getPluginMessage

public static com.ibm.etools.systems.core.messages.SystemMessage getPluginMessage(String msgId)
retrieve a message from this plugin's message file


isAdvancedEdition

public static boolean isAdvancedEdition()
Check whether we are running under the standard or advanced edition of the product.

Since:
RWDi 6.0

iSeries Remote Systems
v6.0.0

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.