Class ProgressMonitor
- java.lang.Object
-
- org.eclipse.lemminx.commons.progress.ProgressMonitor
-
- All Implemented Interfaces:
org.eclipse.lsp4j.jsonrpc.CancelChecker
public class ProgressMonitor extends Object implements org.eclipse.lsp4j.jsonrpc.CancelChecker
Progress monitor which wraps the LSP progress API to simplify the implementation of progress.- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description ProgressMonitor(String progressId, ProgressSupport progressSupport)ProgressMonitor(ProgressSupport progressSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(String title, String message, Integer percentage, Boolean cancellable)voidcheckCanceled()voidend(String message)booleanisCanceled()voidreport(String message, Integer percentage, Boolean cancellable)
-
-
-
Constructor Detail
-
ProgressMonitor
public ProgressMonitor(ProgressSupport progressSupport)
-
ProgressMonitor
public ProgressMonitor(String progressId, ProgressSupport progressSupport)
-
-
Method Detail
-
end
public void end(String message)
-
checkCanceled
public void checkCanceled()
- Specified by:
checkCanceledin interfaceorg.eclipse.lsp4j.jsonrpc.CancelChecker
-
isCanceled
public boolean isCanceled()
- Specified by:
isCanceledin interfaceorg.eclipse.lsp4j.jsonrpc.CancelChecker
-
-