public class UiProgressMonitorWrapper extends Object implements org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IProgressMonitorWithBlocking
IProgressMonitor and IProgressMonitorWithBlocking
methods to the wrapped progress monitor and runs this methods in the display
thread.
This class can be used without OSGi running.
Clients may subclass.
| Constructor and Description |
|---|
UiProgressMonitorWrapper(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.swt.widgets.Display display)
Creates a new wrapper around the given monitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginTask(String name,
int totalWork)
This implementation of a
IProgressMonitor method forwards to
the wrapped progress monitor. |
void |
clearBlocked()
This implementation of a
IProgressMonitorWithBlocking method
forwards to the wrapped progress monitor. |
void |
done()
This implementation of a
IProgressMonitor method forwards to
the wrapped progress monitor. |
org.eclipse.core.runtime.IProgressMonitor |
getWrappedProgressMonitor()
Returns the wrapped progress monitor.
|
void |
internalWorked(double work)
This implementation of a
IProgressMonitor method forwards to
the wrapped progress monitor. |
boolean |
isCanceled()
This implementation of a
IProgressMonitor method forwards to
the wrapped progress monitor. |
void |
setBlocked(org.eclipse.core.runtime.IStatus reason)
This implementation of a
IProgressMonitorWithBlocking method
forwards to the wrapped progress monitor. |
void |
setCanceled(boolean b)
This implementation of a
IProgressMonitor method forwards to
the wrapped progress monitor. |
void |
setTaskName(String name)
This implementation of a
IProgressMonitor method forwards to
the wrapped progress monitor. |
void |
subTask(String name)
This implementation of a
IProgressMonitor method forwards to
the wrapped progress monitor. |
void |
worked(int work)
This implementation of a
IProgressMonitor method forwards to
the wrapped progress monitor. |
public UiProgressMonitorWrapper(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.swt.widgets.Display display)
monitor - the progress monitor to forward topublic void beginTask(String name, int totalWork)
IProgressMonitor method forwards to
the wrapped progress monitor. Clients may override this method to do
additional processing.beginTask in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.beginTask(String, int)public void clearBlocked()
IProgressMonitorWithBlocking method
forwards to the wrapped progress monitor. Clients may override this
method to do additional processing.clearBlocked in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.clearBlocked()public void done()
IProgressMonitor method forwards to
the wrapped progress monitor. Clients may override this method to do
additional processing.done in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.done()public org.eclipse.core.runtime.IProgressMonitor getWrappedProgressMonitor()
public void internalWorked(double work)
IProgressMonitor method forwards to
the wrapped progress monitor. Clients may override this method to do
additional processing.internalWorked in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.internalWorked(double)public boolean isCanceled()
IProgressMonitor method forwards to
the wrapped progress monitor. Clients may override this method to do
additional processing.isCanceled in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.isCanceled()public void setBlocked(org.eclipse.core.runtime.IStatus reason)
IProgressMonitorWithBlocking method
forwards to the wrapped progress monitor. Clients may override this
method to do additional processing.setBlocked in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.setBlocked(IStatus)public void setCanceled(boolean b)
IProgressMonitor method forwards to
the wrapped progress monitor. Clients may override this method to do
additional processing.setCanceled in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.setCanceled(boolean)public void setTaskName(String name)
IProgressMonitor method forwards to
the wrapped progress monitor. Clients may override this method to do
additional processing.setTaskName in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.setTaskName(String)public void subTask(String name)
IProgressMonitor method forwards to
the wrapped progress monitor. Clients may override this method to do
additional processing.subTask in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.subTask(String)public void worked(int work)
IProgressMonitor method forwards to
the wrapped progress monitor. Clients may override this method to do
additional processing.worked in interface org.eclipse.core.runtime.IProgressMonitorIProgressMonitor.worked(int)Copyright © 2022 Fraunhofer IWU. All rights reserved.