Rational Developer for i
7.5.0

com.ibm.etools.systems.as400.debug.launchconfig
Class IDEALPlugin

java.lang.Object
  extended by SystemBasePlugin
      extended by com.ibm.etools.systems.as400.debug.launchconfig.IDEALPlugin

public class IDEALPlugin
extends SystemBasePlugin

Represents the Daemon plugin


Field Summary
static String copyright
           
static int DBG
           
static int ERR
           
static String HELPPREFIX
           
 
Constructor Summary
IDEALPlugin()
          Constructor for IDEALPlugin no parameter to plugin class in Eclipse 3.0 And move its content to start() method in Eclipse 3.0
 
Method Summary
static void displayError(String titleCode, String msgCode)
          To be used when daemon not on UI thread
static IWorkbench getActiveWorkbench()
           
static IStructuredSelection getActiveWorkbenchSelection()
          Returns the current selection, or null if none.
static Shell getActiveWorkbenchShell()
          Returns the active workbench shell.
static IWorkbenchWindow getActiveWorkbenchWindow()
           
static ISystemViewElementAdapter getAdapter(Object o)
          Returns the implementation of ISystemViewElement for the given object.
static IDEALPlugin getDefault()
           
 Display getDisplay()
          Debug ui thread safe access to a display
static IDEALPlugin getInstance()
           
static String getMappedMessageID(String originalMessageID)
          Return mapped message ID
static ResourceBundle getMessagesResourceBundle()
          Return this plugin's resource bundle that contains all messages Called by all code in this plugin.
static ISystemRemoteElementAdapter getRemoteAdapter(Object o)
          Returns the implementation of ISystemRemoteElement for the given object.
static ServiceEntryPointManager getServiceEntryPointManager()
          Getter method for rseServiceEntryPointManager
 Shell getShell()
          Debug ui thread safe access to a shell
 String getSymbolicName()
           
protected  void initializeImageRegistry()
           
static boolean isErrorLoggingON()
           
static boolean isTracingON()
           
 ResourceBundle loadResourceBundle(String fileName)
          Sets the resource bundle.
static void logText(String text, int level, Exception e)
          If tracing is enabled, logs the text to the file and prints to the console.
static void openPerspective(String perspectiveID)
          openPerspective() Given a perspective ID, try to open a perspective.
 void start(BundleContext context)
           
 void stop(BundleContext context)
           
static ILaunchConfiguration updateLauncConfiguration(ILaunchConfiguration config, String key, String value)
          Update key field in the launch configuration with the String value
 
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

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

IDEALPlugin

public IDEALPlugin()
Constructor for IDEALPlugin no parameter to plugin class in Eclipse 3.0 And move its content to start() method in Eclipse 3.0

Method Detail

getInstance

public static IDEALPlugin getInstance()

getSymbolicName

public String getSymbolicName()

getDefault

public static IDEALPlugin getDefault()

start

public void start(BundleContext context)
           throws Exception
Throws:
Exception
See Also:
change to start() for eclipse 3.0

stop

public void stop(BundleContext context)
          throws Exception
Throws:
Exception
See Also:
No more shutdown(), change to stop

getActiveWorkbench

public static IWorkbench getActiveWorkbench()

getActiveWorkbenchWindow

public static IWorkbenchWindow getActiveWorkbenchWindow()

getActiveWorkbenchSelection

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

Returns:
IStructuredSelection.

getActiveWorkbenchShell

public static Shell getActiveWorkbenchShell()
Returns the active workbench shell. Note: This method should only be called from a UI thread. When running on a non-UI thread, use getShell() method.


getShell

public Shell getShell()
Debug ui thread safe access to a shell


getDisplay

public Display getDisplay()
Debug ui thread safe access to a display


openPerspective

public static void openPerspective(String perspectiveID)
openPerspective() Given a perspective ID, try to open a perspective.


displayError

public static void displayError(String titleCode,
                                String msgCode)
To be used when daemon not on UI thread


logText

public static void logText(String text,
                           int level,
                           Exception e)
If tracing is enabled, logs the text to the file and prints to the console.

Parameters:
text - The text to be logged.
level - Must be either DebugDaemonPlugin.EVT or DebugDaemonPlugin.DBG.
e - exception or null if none

isErrorLoggingON

public static boolean isErrorLoggingON()

isTracingON

public static boolean isTracingON()

getMessagesResourceBundle

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


getAdapter

public static ISystemViewElementAdapter getAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. Returns null if the adapter is not defined or the object is not adaptable.


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.


updateLauncConfiguration

public static ILaunchConfiguration updateLauncConfiguration(ILaunchConfiguration config,
                                                            String key,
                                                            String value)
Update key field in the launch configuration with the String value

Parameters:
ILaunchConfiguration: - configuration to updated
String - key : key to update
String - value : value to update with
Returns:
ILaunchConfiguration: updated launch configuration

getServiceEntryPointManager

public static ServiceEntryPointManager getServiceEntryPointManager()
Getter method for rseServiceEntryPointManager


initializeImageRegistry

protected void initializeImageRegistry()

getMappedMessageID

public static String getMappedMessageID(String originalMessageID)
Return mapped message ID


loadResourceBundle

public final ResourceBundle loadResourceBundle(String fileName)
Sets the resource bundle. Called by child class in their constructor, say, to load in their resource bundle. Handles rare case when not found by telling user, then dying. Note: This is NOT to be used for plugin.properties since Eclipse handles that file differently.

Parameters:
name - of .properties file, without the '.properties' specified
Returns:
ResourceBundle if loaded successfully, null if not.

Rational Developer for i
7.5.0

Copyright 2009 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.