Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-search-dev] NewSearchUI - results not showing



Hi Markus,
Thanks for the pointers.  I've got it working now.  I've undoubtedly
got lots of unnecessary code in my plugin but I no longer need to
call the .internal. method.  I had an embarrasingly simple  mistake
in my elementsChanged() method, fixing that seems to have sorted
everything else out.  One thing I don't understand though is why,
if I run something in the foreground, do I need to
implement elementsChanged()?

The fact that the view displays correctly via the history would
suggest that I don't need to.  Couldn't the runQueryInForeground
simply call the internal method for me at the end of it's processing.
The fact that a single .internal. call initially got it working would
indicate a no-frills helper method could be created.  Or maybe create
a NewSearchUIForDimwits class for people like me!

Anyway, thanks again for your suggestions.  I'd have been quite lost
without your kind help.

Cheers,
Dave Watkins.



platform-search-dev-admin@xxxxxxxxxxx wrote on 26/08/2004 09:55:38:

> How did you implement
> AbstractTextSearchViewPage#elementsChanged(Object[])?
> You have to add new elements to the search result viewer there.
> For a simple example, see NLSSearchResultPage#elementsChanged(..), which
> forwards to TextSearchTableContentProvider#elementsChanged(..)
>
> See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=72661 .
>
> Markus
>
>
>
>
>
> David Watkins <David_Watkins@xxxxxxxx>
> Sent by: platform-search-dev-admin@xxxxxxxxxxx
> 2004-08-25 19:19
> Please respond to
> platform-search-dev@xxxxxxxxxxx
>
>
> To
> platform-search-dev@xxxxxxxxxxx
> cc
>
> Subject
> Re: [platform-search-dev] NewSearchUI - results not showing
>
>
>
>
>
>
>
>
>
>
> Hi Markus,
> Thanks for your suggestions. Unfortunately, it's still not
> working :(
>
> I tried setting the code back to your example and I also
> ensured the search was the same object (based on the code from
> the NLSSearchQuery).
>
> I thought it may have something to do with
> 'ISearchQuery::canRunInBackground()' so I forced that
> method to return false.  Unfortunately none of this worked and
> I still have the same problem - namely the results don't show
> until I access them from the search history.
>
> Any other ideas?  I have a feeling it's something missing from the
> plugin.xml, other than registering the result page is there anything
> else I have to do in terms of initialisation.  I added a subsequent
> call to 'NewSearchUI.getSearchResultView().getActivePage()' and
> inspected the result it was showing my 'BeanSearchResultPage' and
> I could see my matches stored in it - weird!
>
> Anyway thanks again for your help , I think I've probably forgotten
> something really obvious.  Does anyone know of any simple 'all-in-one'
> examples out there I can take a look at?
>
> Cheers,
> Dave Watkins
>
> _______________________________________________
> platform-search-dev mailing list
> platform-search-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-search-dev



Back to the top