Class RelayingProgressMonitor
java.lang.Object
com._1c.g5.v8.dt.internal.compare.RelayingProgressMonitor
- All Implemented Interfaces:
IProgressMonitorContainer,org.eclipse.core.runtime.IProgressMonitor
public class RelayingProgressMonitor
extends Object
implements IProgressMonitorContainer, org.eclipse.core.runtime.IProgressMonitor
An implementation of a progress monitor that relays progress to a contained external progress monitor.
-
Field Summary
Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Adds the specified progress monitor working in the UI-less thread.voidaddProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor, org.eclipse.swt.widgets.Display display) Adds the specified progress monitor and display that should be used for asynchronous communication with that monitor to this container.voidvoiddone()voidinternalWorked(double work) booleanvoidremoveProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Removes the specified progress monitor from the container.voidsetCanceled(boolean value) voidsetTaskName(String name) voidvoidworked(int work) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IProgressMonitor
clearBlocked, setBlocked, slice
-
Constructor Details
-
RelayingProgressMonitor
public RelayingProgressMonitor()
-
-
Method Details
-
addProgressMonitor
public void addProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IProgressMonitorContainerAdds the specified progress monitor working in the UI-less thread.- Specified by:
addProgressMonitorin interfaceIProgressMonitorContainer- Parameters:
progressMonitor- the progress monitor to be set as contained in this container
-
addProgressMonitor
public void addProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor, org.eclipse.swt.widgets.Display display) Description copied from interface:IProgressMonitorContainerAdds the specified progress monitor and display that should be used for asynchronous communication with that monitor to this container.- Specified by:
addProgressMonitorin interfaceIProgressMonitorContainer- Parameters:
progressMonitor- the progress monitor to be set as contained in this containerdisplay- the display for asynchronous communication with the added progress monitor
-
beginTask
- Specified by:
beginTaskin interfaceorg.eclipse.core.runtime.IProgressMonitor
-
done
public void done()- Specified by:
donein interfaceorg.eclipse.core.runtime.IProgressMonitor
-
internalWorked
public void internalWorked(double work) - Specified by:
internalWorkedin interfaceorg.eclipse.core.runtime.IProgressMonitor
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceledin interfaceorg.eclipse.core.runtime.IProgressMonitor
-
removeProgressMonitor
public void removeProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IProgressMonitorContainerRemoves the specified progress monitor from the container.- Specified by:
removeProgressMonitorin interfaceIProgressMonitorContainer- Parameters:
progressMonitor- the progress monitor to remove
-
setCanceled
public void setCanceled(boolean value) - Specified by:
setCanceledin interfaceorg.eclipse.core.runtime.IProgressMonitor
-
setTaskName
- Specified by:
setTaskNamein interfaceorg.eclipse.core.runtime.IProgressMonitor
-
subTask
- Specified by:
subTaskin interfaceorg.eclipse.core.runtime.IProgressMonitor
-
worked
public void worked(int work) - Specified by:
workedin interfaceorg.eclipse.core.runtime.IProgressMonitor
-