mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 20:53:12 +02:00
[190010] Kevin's patch - Added cancel() method that will call the search service to cancel
This commit is contained in:
parent
a533d4a1fa
commit
24c0a6a1eb
1 changed files with 9 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
||||||
* Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem
|
* 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;
|
package org.eclipse.rse.internal.subsystems.files.dstore;
|
||||||
|
@ -150,4 +151,12 @@ public class DStoreFileSubSystemSearchResultConfiguration extends DStoreSearchRe
|
||||||
OutputRefresh refresh = new OutputRefresh(this);
|
OutputRefresh refresh = new OutputRefresh(this);
|
||||||
Display.getDefault().asyncExec(refresh);
|
Display.getDefault().asyncExec(refresh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void cancel()
|
||||||
|
{
|
||||||
|
if (getStatus() == IHostSearchConstants.RUNNING)
|
||||||
|
{
|
||||||
|
getSearchService().cancelSearch(this, new NullProgressMonitor());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue