Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Stopping prematurely the SearchEngine
Stopping prematurely the SearchEngine [message #258895] Mon, 02 March 2009 04:27 Go to next message
Eclipse UserFriend
Hello,

I'm wondering if it is possible to stop the SearchEngine if it appears clear that the number of results will be too big.
Maybe by throwing an exception from the result collector, or something like that ?

Thanks in advance,

--
Laurent Petit
Re: Stopping prematurely the SearchEngine [message #258924 is a reply to message #258895] Tue, 03 March 2009 08:02 Go to previous message
Eclipse UserFriend
Laurent Petit wrote:
> Hello,
>
> I'm wondering if it is possible to stop the SearchEngine if it appears
> clear that the number of results will be too big.
> Maybe by throwing an exception from the result collector, or something
> like that ?
>
> Thanks in advance,
>
What SearchEngine API method do you use?

Most of SearchEngine API methods accept an IProgressMonitor.
That means you should be able to cancel the search operation by calling
setCanceled(true) on the given monitor...
Previous Topic:problem with ITypeBinding.getQualifiedName()
Next Topic:Confusing Compiler ErrorMessage since 3.4.2
Goto Forum:
  


Current Time: Mon Apr 28 02:20:04 EDT 2025

Powered by FUDForum. Page generated in 0.03458 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top