Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Testing Help Runtime
Testing Help Runtime [message #624096] Tue, 13 April 2010 16:48 Go to next message
Miles Parker is currently offline Miles Parker
Messages: 1338
Registered: July 2009
Senior Member
[Moved from general platform discussion]

Hi,

I've been doing a lot of documentation lately, and though the tools are great, there is one aspect that is a little awkward. In order to see what the docs will look like to user, I have to launch an Eclipse runtime with my docs plugin and then from that launch the Help browser. This is especially inefficient because I'm on a mac so the help browser is external. I recognize that sometimes edits are available immediately, but that doesn't work for all changes. (I do wikitext generation for example.)

Is there a better usage pattern here? Anyway to launch the help browser directly from host development environment without going through intermediate step of Eclipse runtime?

thanks,

Miles
Re: Testing Help Runtime [message #624108 is a reply to message #624096] Tue, 20 April 2010 19:26 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris Goldthorpe
Messages: 815
Registered: July 2009
Senior Member
The only way right now to see your documents exactly as they will appear to the user is to start Eclipse. The help server processes the html files to add breadcrumbs, include css files etc.
Re: Testing Help Runtime [message #624110 is a reply to message #624096] Tue, 20 April 2010 19:34 Go to previous messageGo to next message
Miles Parker is currently offline Miles Parker
Messages: 1338
Registered: July 2009
Senior Member
Thanks Chris.. Is there any way to reload help content -- i.e. restart the help server w/o exiting the runtime, relaunching it and then relaunching help?
Re: Testing Help Runtime [message #624111 is a reply to message #624110] Tue, 20 April 2010 22:28 Go to previous messageGo to next message
Chris Austin is currently offline Chris Austin
Messages: 28
Registered: July 2009
Junior Member
Miles - what I do to minimize the restart time is run eclipse in infocenter mode. To do this, create a new Eclipse Application run configuration, and select org.eclipse.help.base.infocenterApplication under 'Run an application:' Then, under VM arguments, add the param -Dserver_port=10000 (or some other port you like that is open) and you can launch a browser to http://127.0.0.1:10000/help/index.jsp

Infocenter mode takes less time to startup, and it starts with help system already running.
Re: Testing Help Runtime [message #624122 is a reply to message #624111] Wed, 21 April 2010 13:55 Go to previous messageGo to next message
Miles Parker is currently offline Miles Parker
Messages: 1338
Registered: July 2009
Senior Member
Chris Austin wrote on Tue, 20 April 2010 22:28
> Miles - what I do to minimize the restart time is run eclipse in infocenter mode. To do this, create a new Eclipse Application run configuration, and select org.eclipse.help.base.infocenterApplication under 'Run an application:' Then, under VM arguments, add the param -Dserver_port=10000 (or some other port you like that is open) and you can launch a browser to http://127.0.0.1:10000/help/index.jsp
>
> Infocenter mode takes less time to startup, and it starts with help system already running.


Hey, that's excellent! Just what I was looking for with original post actually. With this approach, I can simply launch the app in a few seconds and then refresh my browser. BTW, for other folks trying this, it took a few minuted to figure out the dependencies that the app server needs. But assuming that you already have a dependency on the help items for your doc plugin, you need to add org.eclipse.help.webapp and org.eclipse.help.appserver then add the required dependencies. Also, don't forget to kill the prior app before launching a new one or you'll get a socket in use exception.
Re: Testing Help Runtime [message #624178 is a reply to message #624122] Wed, 16 June 2010 20:58 Go to previous message
Miles Parker is currently offline Miles Parker
Messages: 1338
Registered: July 2009
Senior Member
Miles Parker wrote on Wed, 21 April 2010 13:55
> Chris Austin wrote on Tue, 20 April 2010 22:28
> > Miles - what I do to minimize the restart time is run eclipse in infocenter mode. To do this, create a new Eclipse Application run configuration, and select org.eclipse.help.base.infocenterApplication under 'Run an application:' Then, under VM arguments, add the param -Dserver_port=10000 (or some other port you like that is open) and you can launch a browser to http://127.0.0.1:10000/help/index.jsp


Hmmm... this was working but now its not. I'm on RC4. When I start up I get the below. It goes through startup and then just stops itself. Anyone have any ideas what might be going wrong here? (Probably something dumb.)

17:56:05.622 [Start Help Server] INFO org.mortbay.log - Logging to Logger[org.mortbay.log] via org.mortbay.log.Slf4jLog
17:56:05.643 [Start Help Server] DEBUG org.mortbay.log - Container mailto:Server@6ab30913 + mailto:SelectChannelConnector@0.0.0.0:10000 as connector
17:56:05.670 [Start Help Server] DEBUG org.mortbay.log - filterNameMap=null
17:56:05.670 [Start Help Server] DEBUG org.mortbay.log - pathFilters=null
17:56:05.670 [Start Help Server] DEBUG org.mortbay.log - servletFilterMap=null
17:56:05.670 [Start Help Server] DEBUG org.mortbay.log - servletPathMap={/*=org.eclipse.equinox.http.jetty.internal.H ttpServerManager$InternalHttpServiceServlet-2125581447}
17:56:05.670 [Start Help Server] DEBUG org.mortbay.log - servletNameMap={org.eclipse.equinox.http.jetty.internal.Http ServerManager$InternalHttpServiceServlet-2125581447=org.ecli pse.equinox.http.jetty.internal.HttpServerManager$InternalHt tpServiceServlet-2125581447}
17:56:05.671 [Start Help Server] DEBUG org.mortbay.log - Container mailto:Server@6ab30913 + mailto:org.mortbay.jetty.servlet.Context@75bc16f0{/help,null} as handler
17:56:05.671 [Start Help Server] DEBUG org.mortbay.log - Container mailto:ServletHandler@f8622f3 + org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet-2125581447 as servlet
17:56:05.671 [Start Help Server] DEBUG org.mortbay.log - Container mailto:ServletHandler@f8622f3 + (S=org.eclipse.equinox.http.jetty.internal.HttpServerManager $InternalHttpServiceServlet-2125581447,[/*]) as servletMapping
17:56:05.671 [Start Help Server] DEBUG org.mortbay.log - Container mailto:SessionHandler@2f60877b + mailto:ServletHandler@f8622f3 as handler
17:56:05.671 [Start Help Server] DEBUG org.mortbay.log - Container mailto:SessionHandler@2f60877b + mailto:org.mortbay.jetty.servlet.HashSessionManager@6a5eb489 as sessionManager
17:56:05.671 [Start Help Server] DEBUG org.mortbay.log - Container mailto:org.mortbay.jetty.servlet.Context@75bc16f0{/help,null} + mailto:SessionHandler@2f60877b as handler
17:56:05.672 [Start Help Server] INFO org.mortbay.log - jetty-6.1.x
17:56:05.680 [Start Help Server] DEBUG org.mortbay.log - Container mailto:Server@6ab30913 + mailto:org.mortbay.thread.QueuedThreadPool@7ca522a6 as threadpool
17:56:05.683 [Start Help Server] DEBUG org.mortbay.log - started mailto:org.mortbay.thread.QueuedThreadPool@7ca522a6
17:56:05.693 [Start Help Server] DEBUG org.mortbay.log - Container mailto:org.mortbay.jetty.servlet.Context@75bc16f0{/help,null} + mailto:ErrorHandler@3ef07355 as errorHandler
17:56:05.694 [Start Help Server] DEBUG org.mortbay.log - Container mailto:Server@6ab30913 + mailto:org.mortbay.jetty.servlet.HashSessionIdManager@7bd33a6b as sessionIdManager
17:56:05.694 [Start Help Server] DEBUG org.mortbay.log - Init SecureRandom.
17:56:05.695 [Start Help Server] DEBUG org.mortbay.log - started mailto:org.mortbay.jetty.servlet.HashSessionIdManager@7bd33a6b
17:56:05.696 [Start Help Server] DEBUG org.mortbay.log - started mailto:org.mortbay.jetty.servlet.HashSessionManager@6a5eb489
17:56:05.696 [Start Help Server] DEBUG org.mortbay.log - filterNameMap=null
17:56:05.696 [Start Help Server] DEBUG org.mortbay.log - pathFilters=null
17:56:05.696 [Start Help Server] DEBUG org.mortbay.log - servletFilterMap=null
17:56:05.696 [Start Help Server] DEBUG org.mortbay.log - servletPathMap={/*=org.eclipse.equinox.http.jetty.internal.H ttpServerManager$InternalHttpServiceServlet-2125581447}
17:56:05.697 [Start Help Server] DEBUG org.mortbay.log - servletNameMap={org.eclipse.equinox.http.jetty.internal.Http ServerManager$InternalHttpServiceServlet-2125581447=org.ecli pse.equinox.http.jetty.internal.HttpServerManager$InternalHt tpServiceServlet-2125581447}
17:56:05.697 [Start Help Server] DEBUG org.mortbay.log - starting mailto:ServletHandler@f8622f3
17:56:05.697 [Start Help Server] DEBUG org.mortbay.log - started mailto:ServletHandler@f8622f3
17:56:05.697 [Start Help Server] DEBUG org.mortbay.log - starting mailto:SessionHandler@2f60877b
17:56:05.697 [Start Help Server] DEBUG org.mortbay.log - started mailto:SessionHandler@2f60877b
17:56:05.697 [Start Help Server] DEBUG org.mortbay.log - starting mailto:org.mortbay.jetty.servlet.Context@75bc16f0{/help,null}
17:56:05.697 [Start Help Server] DEBUG org.mortbay.log - starting mailto:ErrorHandler@3ef07355
17:56:05.697 [Start Help Server] DEBUG org.mortbay.log - started mailto:ErrorHandler@3ef07355
17:56:05.699 [Start Help Server] DEBUG org.mortbay.log - started org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet-2125581447
17:56:05.699 [Start Help Server] DEBUG org.mortbay.log - started mailto:org.mortbay.jetty.servlet.Context@75bc16f0{/help,null}
17:56:05.699 [Start Help Server] DEBUG org.mortbay.log - starting mailto:Server@6ab30913
17:56:05.706 [Start Help Server] DEBUG org.mortbay.log - started org.mortbay.jetty.nio.SelectChannelConnector$mailto:1@744d76b4
17:56:05.718 [Start Help Server] INFO org.mortbay.log - Started mailto:SelectChannelConnector@0.0.0.0:10000
17:56:05.718 [Start Help Server] DEBUG org.mortbay.log - started mailto:SelectChannelConnector@0.0.0.0:10000
17:56:05.718 [Start Help Server] DEBUG org.mortbay.log - started mailto:Server@6ab30913
17:56:05.776 [Stop Help Server] DEBUG org.mortbay.log - stopped org.mortbay.jetty.nio.SelectChannelConnector$mailto:1@744d76b4
17:56:05.777 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:SelectChannelConnector@0.0.0.0:10000
17:56:05.777 [Stop Help Server] DEBUG org.mortbay.log - stopping mailto:Server@6ab30913
17:56:05.777 [Stop Help Server] DEBUG org.mortbay.log - stopping mailto:org.mortbay.jetty.servlet.Context@75bc16f0{/help,null}
17:56:05.777 [Stop Help Server] DEBUG org.mortbay.log - stopping mailto:SessionHandler@2f60877b
17:56:05.777 [Stop Help Server] DEBUG org.mortbay.log - stopping mailto:ServletHandler@f8622f3
17:56:05.779 [Stop Help Server] DEBUG org.mortbay.log - stopped org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet-2125581447
17:56:05.779 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:ServletHandler@f8622f3
17:56:05.779 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:org.mortbay.jetty.servlet.HashSessionManager@6a5eb489
17:56:05.779 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:SessionHandler@2f60877b
17:56:05.781 [Stop Help Server] DEBUG org.mortbay.log - stopping mailto:ErrorHandler@3ef07355
17:56:05.781 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:ErrorHandler@3ef07355
17:56:05.781 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:org.mortbay.jetty.servlet.Context@75bc16f0{/help,null}
17:56:05.781 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:org.mortbay.jetty.servlet.HashSessionIdManager@7bd33a6b
17:56:05.882 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:org.mortbay.thread.QueuedThreadPool@7ca522a6
17:56:05.882 [Stop Help Server] DEBUG org.mortbay.log - stopped mailto:Server@6ab30913
Previous Topic:mathml in Infocenter
Next Topic:Change the order of plug-ins in table of content
Goto Forum:
  


Current Time: Thu Aug 28 05:21:42 EDT 2014

Powered by FUDForum. Page generated in 0.01968 seconds