Using standalone help system and displayHelp() method not displaying new browser [message #611132] |
Mon, 07 April 2008 18:42 |
Ted Lyons Messages: 14 Registered: July 2009 |
Junior Member |
|
|
Hello,
I am using the class org.eclipse.help.standalone.Help and trying to get
the displayHelp() method to work. If I use the command line, it works
fine and a new browser window appears displaying the page.
Using java code, I can see that the Help system does start, as I can
manually bring up a browser and enter the url and see the data. However,
using displayHelp() does not bring up a browser displaying the page
automatically like the command line API does.
Briefly, the code looks like this:
String[] args = new String[4];
args[0] = "-eclipseHome";
args[1] = "C:\\java samples\\eclipse";
args[2] = "-port";
args[3] = "59233";
System.out.println("about to init help");
Help helpSystem = new Help(args);
try {
helpSystem.start();
helpSystem.displayHelp();
System.out.println("Eclipse Help subsystem started");
return;
}
catch (Exception e) {
e.printStackTrace();
}
|
|
|
Powered by
FUDForum. Page generated in 0.03262 seconds