|Adding html to search index but not TOC [message #623543]
||Tue, 08 September 2009 08:29
| Mohamed Hussein
Registered: July 2009
I want to add some html documents to the help index of my rcp application,
but I don't want them to appear in the toc.
I have found LuceneSearchProvider and implemented the getAllDocuments()
and since the documents are html, I just delegated the addition to the
index to the default index passed in addDocument()
This worked fine, and the documents appear in search results and not in
toc as expected, but I had issues in trying to open the pages.
1- [Resolved] the id passed to open() method was null.
After looking at the code I found that I need to add a "?id=<id>" to the
url of the documents to get that id back in open().
2- I don't know how to open the documents in the same window that had the
link (if using the internal view docked in eclipse).
I assumed from the javadoc of the open method that returning false will
let the help system try to open the document, but the return value is
ignored in ReusableHelpPart! Is this a bug?
I used PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e() to
display help, but this always opens the url in external window.
3- Is there a way to get the url associated with the id from the help
system, or do I need to have a map (or use the full url as the id as the
hack I am doing now :-))
4- The tooltip associated with the documents is "null", is there a way to
Thanks in advance for your help :-)
Powered by FUDForum
. Page generated in 0.03001 seconds