[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.ua] Re: Adding html to search index but not TOC

THANKS a lot Chris, this worked perfectly.


"Chris Goldthorpe" <cgold@xxxxxxxxxx> wrote in message 
news:h862dd$2ve$1@xxxxxxxxxxxxxxxxxxxx
> There is an easier way to do this - use the extradir attribute in a toc 
> entry.
>
> See 
> http://help.eclipse.org/galileo/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_help_toc.html
>
> for more information.
>
> Mohamed Hussein wrote:
>> Hello,
>>
>> 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().displayHelpResource() 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 
>> modify that?
>>
>> Thanks in advance for your help :-)
>>
>> Best Regards,
>> Mohamed.
>>