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 TypeMethodDescriptionvoid
addProgressMonitor
(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Adds the specified progress monitor working in the UI-less thread.void
addProgressMonitor
(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.void
void
done()
void
internalWorked
(double work) boolean
void
removeProgressMonitor
(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Removes the specified progress monitor from the container.void
setCanceled
(boolean value) void
setTaskName
(String name) void
void
worked
(int work) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:IProgressMonitorContainer
Adds the specified progress monitor working in the UI-less thread.- Specified by:
addProgressMonitor
in 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:IProgressMonitorContainer
Adds the specified progress monitor and display that should be used for asynchronous communication with that monitor to this container.- Specified by:
addProgressMonitor
in 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:
beginTask
in interfaceorg.eclipse.core.runtime.IProgressMonitor
-
done
public void done()- Specified by:
done
in interfaceorg.eclipse.core.runtime.IProgressMonitor
-
internalWorked
public void internalWorked(double work) - Specified by:
internalWorked
in interfaceorg.eclipse.core.runtime.IProgressMonitor
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceled
in interfaceorg.eclipse.core.runtime.IProgressMonitor
-
removeProgressMonitor
public void removeProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IProgressMonitorContainer
Removes the specified progress monitor from the container.- Specified by:
removeProgressMonitor
in interfaceIProgressMonitorContainer
- Parameters:
progressMonitor
- the progress monitor to remove
-
setCanceled
public void setCanceled(boolean value) - Specified by:
setCanceled
in interfaceorg.eclipse.core.runtime.IProgressMonitor
-
setTaskName
- Specified by:
setTaskName
in interfaceorg.eclipse.core.runtime.IProgressMonitor
-
subTask
- Specified by:
subTask
in interfaceorg.eclipse.core.runtime.IProgressMonitor
-
worked
public void worked(int work) - Specified by:
worked
in interfaceorg.eclipse.core.runtime.IProgressMonitor
-