|
Re: Welcome page with dynamic content (contentProducer?) [message #516119 is a reply to message #516070] |
Mon, 22 February 2010 19:27 |
Chris Austin Messages: 28 Registered: July 2009 |
Junior Member |
|
|
Hi Alec,
Your plugin.xml looks fine to me.
There is an example of this in the eclipse code for 3.6. Any recent build of Eclipse 3.6 should have the Network Error Page which is supplied by a Content Producer in the org.eclipse.help.webapp plugin, see /org.eclipse.help.webapp/src/org/eclipse/help/internal/webap p/StatusProducer.java
In order to reference the Content Producer, you need to use a URL that includes the plugin which contains the extension point for your Content Producer. In other words, for the example above , something like this:
help/topic/org.eclipse.help.webapp/NetworkHelpStatus.html
The getInputStream(String pluginID, String href, Locale locale) method of your Content Producer will be called anytime a reference is made to a topic inside of its parent plugin. At that time, it is best to check the request and see if it is a request for your dynamic content. If so, return an InputStream containing the dynamic content. If not, return null so that Eclipse can send the help request to any static content that may be available in the plugin.
- Chris Austin
|
|
|
Re: Welcome page with dynamic content (contentProducer?) [message #516247 is a reply to message #516119] |
Tue, 23 February 2010 11:11 |
Alec Messages: 12 Registered: February 2010 |
Junior Member |
|
|
Hi Chris
*Edit - Thank you for your rapid response! =)
Its good to see an example and hear that I am along the right lines.
How can i reference the plugin in the intro page though?
At the moment I have a fullscreen.xhtml that i use as the root page. what tag should i use to make reference to the plugin (hence the producer) to create the dynamic content.
ie how do i actually use it, when i try to create a link to it such as <a href="a.b.c.d.e/test.html">test link</a> I get a search page provided by my dns provider. Meaning the page cant be found =(
[Updated on: Tue, 23 February 2010 11:18] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05564 seconds