Class Help
- create an instantance of this class and then hold onto this instance for the duration of your application
- call start()
- call displayHelp(...) or displayContext(..) any number of times
- at the end, call shutdown().
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayContext(String contextId, int x, int y) Displays context sensitive help.voiddisplayContextInfopop(String contextId, int x, int y) Displays context sensitive help in infopop.voidDisplays help.voiddisplayHelp(String href) Displays specified help resource.static voidControls standalone help system from command line.voidshutdown()Shuts-down the stand alone help system.voidstart()Starts the stand alone help system.
-
Constructor Details
-
Help
Constructs help system- Parameters:
options- array of String options and their valuesOption
-eclipseHome dirspecifies Eclipse installation directory. This directory is a parent to "plugins" directory and eclipse executable. The option must be provided, when current directory from which infocenter is launched, is not the same as Eclipse installation directory.Option
-host helpServerHostspecifies host name of the interface that help server will use. It overrides host name specified in the application server plugin preferences.Option
-port helpServerPortspecifies port number that help server will use. It overrides port number specified in the application server plugin preferences.Option
-dir rtlsets right-to-left rendering direction of help UI in the browser.Additionally, most options accepted by Eclipse execuable are supported.
-
Help
Deprecated.use Help#Help(String[])This contstructs the stand alone help.- Parameters:
pluginsDir- directory containing Eclipse plugins
-
-
Method Details
-
start
Starts the stand alone help system.- Throws:
Exception
-
shutdown
Shuts-down the stand alone help system.- Throws:
Exception
-
displayHelp
Displays help.- Throws:
Exception
-
displayHelp
Displays specified help resource.- Parameters:
href- the href of the table of contents- Throws:
Exception
-
displayContext
Displays context sensitive help.- Parameters:
contextId- context idx- x coordinatey- y coordinate- Throws:
Exception
-
displayContextInfopop
Displays context sensitive help in infopop.- Parameters:
contextId- context idx- x coordinatey- y coordinate- Throws:
Exception
-
main
Controls standalone help system from command line.- Parameters:
args- array of String containing options.
Options are:-command start | shutdown | (displayHelp [href]) [-eclipsehome eclipseInstallPath] [-host helpServerHost] [-port helpServerPort] [-dir rtl] [platform options] [-vmargs JavaVMarguments]
where:hrefis the URL of the help resource to display,eclipseInstallPathspecifies Eclipse installation directory; it must be provided, when current directory is not the same as Eclipse installation directory,helpServerHostspecifies host name of the interface that help server will use, it overrides host name specified the application server plugin preferenceshelpServerPortspecifies port number that help server will use, it overrides port number specified the application server plugin preferences.-dir rtlsets right-to-left rendering direction of help UI in the browser.platform optionsare other options that are supported by Eclipse Executable.
-