[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.ua] Re: Starting help system webapp
|
- From: Chris Goldthorpe <cgold@xxxxxxxxxx>
- Date: Wed, 03 Jun 2009 14:49:46 -0700
- Newsgroups: eclipse.platform.ua
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
You could try something like this
System.setProperty("server_port", "8081");
PlatformUI.getWorkbench().getHelpSystem().resolve("", false);
to start the help system on port 8081
It seems that there should be a cleaner way of setting the port through
API but right now there is no way to do it.
Bert Vingerhoets wrote:
Hi,
I'm trying to integrate documentation into a headless server application
running on the Eclipse platform so that the help pages can be consulted
with a browser.
As far as I understand the system, one way to start the 'help' webapp is
to use the org.eclipse.help.standalone.Help or
org.eclipse.help.standalone.InfoCenter classes. However, these start a
new instance of Eclipse, which is silly because I already have one running.
At the moment I'm calling
org.eclipse.help.internal.base.BaseHelpSystem.ensureWebappRunning() and
ignoring the warnings about discouraged access. The problem with this
approach is that I can't seem to configure the webapp's port (unless I
pass the -Dserver_port VM argument, which is not an option as we have a
centralized configuration file which should contain this kind of setting).
Is there an API (that allows specifying critical parameters such as
listening port) to get the help webapp started from an Eclipse-based
application?
Regards,
Bert Vingerhoets
Originally posted to news.eclipse.platform under the same subject