Remote Systems
v6.4.1

com.ibm.etools.systems.launch.remoteJava
Class RemoteJavaLaunchPlugin

java.lang.Object
  extended byAbstractUIPlugin
      extended bycom.ibm.etools.systems.core.SystemBasePlugin
          extended bycom.ibm.etools.systems.launch.remoteJava.RemoteJavaLaunchPlugin
All Implemented Interfaces:
IUniversalJavaLaunchConstants

public class RemoteJavaLaunchPlugin
extends SystemBasePlugin
implements IUniversalJavaLaunchConstants

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
 
Fields inherited from interface com.ibm.etools.systems.launch.remoteJava.IUniversalJavaLaunchConstants
ATTR_HAS_ASSOCIATED_PROJECT, ATTR_PREFIX, ATTR_REMOTE_WORKING_DIRECTORY, ATTR_REMOTE_WORKING_DIRECTORY_CLASSPATH, ATTR_REMOTEJAVA_ATTACH_CONNECTOR_HOSTNAME, ATTR_REMOTEJAVA_ATTACH_CONNECTOR_PORTNAME, ATTR_REMOTEJAVA_AUTOMATIC_HOST_DEBUG_JDWP_PORT, ATTR_REMOTEJAVA_ENVIRONMENT, ATTR_REMOTEJAVA_ERROR_TAB_ARGUMENTS, ATTR_REMOTEJAVA_ERROR_TAB_CLASSPATH, ATTR_REMOTEJAVA_ERROR_TAB_DEBUG, ATTR_REMOTEJAVA_ERROR_TAB_MAIN, ATTR_REMOTEJAVA_HOST_DEBUG_JDWP_PORT, ATTR_REMOTEJAVA_TERMINATEJVM, BROWSE, BROWSEPROMPT, CLASS, ERR_CODE_INVALID_RSECONNECTION, ERR_CODE_LAUNCH_CANCEL, ERR_CODE_LAUNCH_NOPORT, ERR_CODE_LAUNCH_PORTUSED, ERR_CODE_LAUNCH_UNEXPECTED, ERR_CODE_LAUNCH_WORKINGFOLDER_NOTEXIST, ERR_CODE_NO_MAIN, HELP_LAUNCHCONFIGTAB_JAVA_ADVANCED, HELP_LAUNCHCONFIGTAB_JAVA_ARGUMENTS, HELP_LAUNCHCONFIGTAB_JAVA_CLASSPATH, HELP_LAUNCHCONFIGTAB_JAVA_CLASSPATH_DIALOG_ENTRY, HELP_LAUNCHCONFIGTAB_JAVA_CLASSPATH_DIALOG_PROMPT, HELP_LAUNCHCONFIGTAB_JAVA_MAIN, HELP_PREFIX, HELP_REMOTEJAVA_PREFERENCE_PAGE, HISTORY_PREFIX, HostJDWPPort, ICON_DIALOG_MAIN, ICON_DIALOG_MAIN_ID, ICON_DIALOG_MAIN_ROOT, ICON_EXT, ICON_ROOT, ICON_SUFFIX, ICON_TABS_ARGUMENTS, ICON_TABS_ARGUMENTS_ID, ICON_TABS_ARGUMENTS_ROOT, ICON_TABS_CLASSPATH, ICON_TABS_CLASSPATH_FOLDER, ICON_TABS_CLASSPATH_FOLDER_ID, ICON_TABS_CLASSPATH_FOLDER_ROOT, ICON_TABS_CLASSPATH_ID, ICON_TABS_CLASSPATH_JAR, ICON_TABS_CLASSPATH_JAR_ID, ICON_TABS_CLASSPATH_JAR_ROOT, ICON_TABS_CLASSPATH_ROOT, ICON_TABS_DEBUG, ICON_TABS_DEBUG_ID, ICON_TABS_DEBUG_ROOT, ICON_TABS_MAIN, ICON_TABS_MAIN_ID, ICON_TABS_MAIN_ROOT, JAR, LABEL, LAUNCH_GENERIC_PREFIX, LAUNCH_TYPE, MSG_GEN_AnyError, MSG_GEN_AnyInfo, MSG_GEN_DebugConnectionFailed, MSG_GEN_GetLCInfoFailed, MSG_GEN_InvalidSelection, MSG_GEN_LaunchCanceled, MSG_GEN_LaunchFailed, MSG_GEN_NoMainInSelection, MSG_GEN_NoMainSelected, MSG_GEN_NoMainType, MSG_GEN_NoRSEConnection, MSG_GEN_UnexpectedException, MSG_GEN_WaitConnection, PREFIX, REMOTEJAVA_DEBUG_ACTION_ID, REMOTEJAVA_DEBUG_PROMPT_ACTION_ID, REMOTEJAVA_MSG_ERR, REMOTEJAVA_MSG_ERR_CREATELC_FAILED, REMOTEJAVA_MSG_ERR_EXCEPTION, REMOTEJAVA_MSG_ERR_LAUNCH_CANCEL, REMOTEJAVA_MSG_ERR_LAUNCH_DEBUG_CONNECTION_FAILED, REMOTEJAVA_MSG_ERR_LAUNCH_INVALID_HOST, REMOTEJAVA_MSG_ERR_LAUNCH_INVALID_PORT, REMOTEJAVA_MSG_ERR_LAUNCH_INVALID_RSECONNECTION, REMOTEJAVA_MSG_ERR_LAUNCH_NO_MAIN, REMOTEJAVA_MSG_ERR_LAUNCH_NO_RSECONNECTION_FOUND, REMOTEJAVA_MSG_ERR_LAUNCH_NOCONNECTOR, REMOTEJAVA_MSG_ERR_LAUNCH_NOPORT, REMOTEJAVA_MSG_ERR_LAUNCH_PORTUSED, REMOTEJAVA_MSG_ERR_LAUNCH_UNEXPECTED, REMOTEJAVA_MSG_ERR_LAUNCH_WORKINGFOLDER_NOTEXIST, REMOTEJAVA_MSG_ERR_LAUNCHING, REMOTEJAVA_MSG_ERR_SEARCH_TYPE, REMOTEJAVA_MSG_INFO, REMOTEJAVA_MSG_INFO_LAUNCH_CONNECT_DEBUGPORT, REMOTEJAVA_MSG_INFO_LAUNCH_CREATE_DEBUGTARGET, REMOTEJAVA_MSG_INFO_LAUNCH_SET_DEBUGCONNECTION, REMOTEJAVA_MSG_INFO_LAUNCH_VERIFY_CONNECTOR, REMOTEJAVA_MSG_INFO_LAUNCHING, REMOTEJAVA_MSG_INFO_LAUNCHING_BEGIN, REMOTEJAVA_MSG_INFO_LAUNCHING_INVOKEAPP, REMOTEJAVA_MSG_INFO_LAUNCHING_SETSOURCELOCATOR, REMOTEJAVA_MSG_INFO_LAUNCHING_VERIFYLC, REMOTEJAVA_MSG_PREFIX, REMOTEJAVA_RUN_ACTION_ID, REMOTEJAVA_RUN_PROMPT_ACTION_ID, REMOTEJAVA_SHORTCUT_DIALOG, REMOTEJAVA_SHORTCUT_DIALOG_MAINTYPES_LOOKUP, REMOTEJAVA_SHORTCUT_DIALOG_MAINTYPES_MATCHING, REMOTEJAVA_SHORTCUT_DIALOG_MAINTYPES_QUALIFIER, REMOTEJAVA_SHORTCUT_DIALOG_SELECT_LC_ROOT, REMOTEJAVA_TABS_ARGUMENTS, REMOTEJAVA_TABS_ARGUMENTS_PGMARGUMENTS_ROOT, REMOTEJAVA_TABS_ARGUMENTS_VMARGUMENTS_ROOT, REMOTEJAVA_TABS_CLASSPATH, REMOTEJAVA_TABS_CLASSPATH_BUTTON_ADD_ROOT, REMOTEJAVA_TABS_CLASSPATH_BUTTON_DOWN_ROOT, REMOTEJAVA_TABS_CLASSPATH_BUTTON_EDIT_ROOT, REMOTEJAVA_TABS_CLASSPATH_BUTTON_REMOVE_ROOT, REMOTEJAVA_TABS_CLASSPATH_BUTTON_UP_ROOT, REMOTEJAVA_TABS_CLASSPATH_DIALOG_ADD_ROOT, REMOTEJAVA_TABS_CLASSPATH_DIALOG_BROWSE_ROOT, REMOTEJAVA_TABS_CLASSPATH_DIALOG_EDIT_ROOT, REMOTEJAVA_TABS_CLASSPATH_DIALOG_ENTRY_ROOT, REMOTEJAVA_TABS_CLASSPATH_DIALOG_ERROR_ROOT, REMOTEJAVA_TABS_CLASSPATH_DIALOG_INVALID_ENTRY_ROOT, REMOTEJAVA_TABS_CLASSPATH_DIALOG_ROOT, REMOTEJAVA_TABS_CLASSPATH_ERR_INVALID_CLASSPATH, REMOTEJAVA_TABS_CLASSPATH_TABLE_ROOT, REMOTEJAVA_TABS_CLASSPATH_WORKINGDIR_CLASSPATH_ROOT, REMOTEJAVA_TABS_DEBUG, REMOTEJAVA_TABS_DEBUG_ERRORR_INVALID_PORT, REMOTEJAVA_TABS_DEBUG_PORT_AUTOMATIC_ROOT, REMOTEJAVA_TABS_DEBUG_PORT_PORTGROUP_ROOT, REMOTEJAVA_TABS_DEBUG_PORT_ROOT, REMOTEJAVA_TABS_DEBUG_PORT_SPECIFY_ROOT, REMOTEJAVA_TABS_DEBUG_PREFIX, REMOTEJAVA_TABS_MAIN, REMOTEJAVA_TABS_MAIN_CLASS_BROWSE_DIALOG_ROOT, REMOTEJAVA_TABS_MAIN_CLASS_BROWSE_ROOT, REMOTEJAVA_TABS_MAIN_CLASS_ROOT, REMOTEJAVA_TABS_MAIN_CONNECTION, REMOTEJAVA_TABS_MAIN_ERR_CONNECTION_FAILED, REMOTEJAVA_TABS_MAIN_ERR_INVALID_MAIN_SELECTION, REMOTEJAVA_TABS_MAIN_ERR_INVALID_MAIN_TYPE, REMOTEJAVA_TABS_MAIN_ERR_INVALID_PROJECT, REMOTEJAVA_TABS_MAIN_ERR_INVALID_WORKINGDIR, REMOTEJAVA_TABS_MAIN_ERR_NO_MAIN_TYPE, REMOTEJAVA_TABS_MAIN_INCLUDE_JAR_ROOT, REMOTEJAVA_TABS_MAIN_PROJECT_BROWSE_DIALOG_ROOT, REMOTEJAVA_TABS_MAIN_PROJECT_BROWSE_ROOT, REMOTEJAVA_TABS_MAIN_PROJECT_CHECK_ROOT, REMOTEJAVA_TABS_MAIN_PROJECT_ROOT, REMOTEJAVA_TABS_MAIN_STOPINMAIN_ROOT, REMOTEJAVA_TABS_MAIN_TERMINATEJVM_ROOT, REMOTEJAVA_TABS_MAIN_WORKINGDIR_BROWSE_ROOT, REMOTEJAVA_TABS_MAIN_WORKINGDIR_ROOT, REMOTEJAVA_TABS_PREFIX, REMOTEJAVA_UI_PREFIX, RESID_PREF_DEBUG_PORT, RESID_PREF_DEBUG_PORTAUTOMATIC, RESID_PREF_DEBUG_PORTGROUP, RESID_PREF_DEBUG_PORTSPECIFY, RESID_PREF_DEBUG_STOPINMAIN, RESID_PREF_PREFIX, RESID_PREF_ROOT_PAGE, RESID_PREF_ROOT_TITLE, RESID_PREFIX, TOOLTIP
 
Constructor Summary
RemoteJavaLaunchPlugin()
          The constructor.
 
Method Summary
static boolean displayMessage(Shell shell, String msgId, boolean withDetails)
          Only without details and the message indicator is 'Q', a boolean value returned is meaningful; otherwise it always returns true;
static boolean displayMessage(Shell shell, String msgId, Object[] substitutions, boolean withDetails)
          Only without details and the message indicator is 'Q', a boolean value returned is meaningful; otherwise it always returns true;
static boolean displayMessage(String msgId, boolean withDetails)
          Only without details and the message indicator is 'Q', a boolean value returned is meaningful; otherwise it always returns true;
static boolean displayMessage(String msgId, Object[] substitutions, boolean withDetails)
          Only without details and the message indicator is 'Q', a boolean value returned is meaningful; otherwise it always returns true;
static IWorkbenchPage getActivePage()
          Return active workbench page.
static RemoteJavaLaunchPlugin getDefault()
          Returns the shared instance.
static RemoteJavaLaunchPlugin getInstance()
           
static String getPluginID()
           
static SystemMessage getPluginMessage(String msgId)
          retrieve a message from this plugin's message file
static SystemMessageFile getPluginMessageFile()
           
static String getString(String key)
          Get MRI string.
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

RemoteJavaLaunchPlugin

public RemoteJavaLaunchPlugin()
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 RemoteJavaLaunchPlugin getInstance()

getDefault

public static RemoteJavaLaunchPlugin 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.


getString

public static String getString(String key)
Get MRI string.

Parameters:
key -
Returns:

getActivePage

public static IWorkbenchPage getActivePage()
Return active workbench page.


getPluginMessage

public static SystemMessage getPluginMessage(String msgId)
retrieve a message from this plugin's message file


getPluginMessageFile

public static SystemMessageFile getPluginMessageFile()

displayMessage

public static boolean displayMessage(String msgId,
                                     boolean withDetails)
Only without details and the message indicator is 'Q', a boolean value returned is meaningful; otherwise it always returns true;


displayMessage

public static boolean displayMessage(Shell shell,
                                     String msgId,
                                     boolean withDetails)
Only without details and the message indicator is 'Q', a boolean value returned is meaningful; otherwise it always returns true;


displayMessage

public static boolean displayMessage(String msgId,
                                     Object[] substitutions,
                                     boolean withDetails)
Only without details and the message indicator is 'Q', a boolean value returned is meaningful; otherwise it always returns true;


displayMessage

public static boolean displayMessage(Shell shell,
                                     String msgId,
                                     Object[] substitutions,
                                     boolean withDetails)
Only without details and the message indicator is 'Q', a boolean value returned is meaningful; otherwise it always returns true;


initializeImageRegistry

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

Specified by:
initializeImageRegistry in class SystemBasePlugin

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.