1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

[190010] Kevin's patch - Added cancel() method that will call the search service to cancel

This commit is contained in:
David McKnight 2007-07-12 12:41:29 +00:00
parent a533d4a1fa
commit 24c0a6a1eb

View file

@ -14,6 +14,7 @@
* Contributors:
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
* Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem
* Kevin Doyle (IBM) - [190010] Added cancel() method that will call the search service to cancel
*******************************************************************************/
package org.eclipse.rse.internal.subsystems.files.dstore;
@ -150,4 +151,12 @@ public class DStoreFileSubSystemSearchResultConfiguration extends DStoreSearchRe
OutputRefresh refresh = new OutputRefresh(this);
Display.getDefault().asyncExec(refresh);
}
public void cancel()
{
if (getStatus() == IHostSearchConstants.RUNNING)
{
getSearchService().cancelSearch(this, new NullProgressMonitor());
}
}
}