Class EclipseProgressObserver
java.lang.Object
net.ssehub.easy.basics.progress.ProgressObserver
net.ssehub.easy.basics.progress.BasicProgressObserver
net.ssehub.easy.producer.eclipse.observer.EclipseProgressObserver
public class EclipseProgressObserver
extends net.ssehub.easy.basics.progress.BasicProgressObserver
Observes the progress of a longer lasting task for the eclipse ui.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classWraps the eclipse progress monitor to the basic progress observer interface.Nested classes/interfaces inherited from class net.ssehub.easy.basics.progress.BasicProgressObserver
net.ssehub.easy.basics.progress.BasicProgressObserver.IProgressMonitorNested classes/interfaces inherited from class net.ssehub.easy.basics.progress.ProgressObserver
net.ssehub.easy.basics.progress.ProgressObserver.ISubtask, net.ssehub.easy.basics.progress.ProgressObserver.ITask -
Field Summary
FieldsFields inherited from class net.ssehub.easy.basics.progress.ProgressObserver
NO_OBSERVER, NO_SUBTASK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IProgressMonitorReturns the internal eclipse progress monitor if registered.voidregister(org.eclipse.core.runtime.IProgressMonitor monitor) Sets the monitor to this progress observer.voidunregister(org.eclipse.core.runtime.IProgressMonitor monitor) Sets this monitor tonullif the current monitor is the same as the specified monitor.Methods inherited from class net.ssehub.easy.basics.progress.BasicProgressObserver
notifyEnd, notifyProgress, notifyStart, register, registerSubtask, registerTask, unregisterMethods inherited from class net.ssehub.easy.basics.progress.ProgressObserver
notifyEnd, notifyProgress, notifyProgress, notifyProgress, notifyStart
-
Field Details
-
monitor
-
-
Constructor Details
-
EclipseProgressObserver
public EclipseProgressObserver()
-
-
Method Details
-
register
public void register(org.eclipse.core.runtime.IProgressMonitor monitor) Sets the monitor to this progress observer.
Overwrites already set monitors.- Parameters:
monitor- The monitor which should be added to this observer.
-
unregister
public void unregister(org.eclipse.core.runtime.IProgressMonitor monitor) Sets this monitor tonullif the current monitor is the same as the specified monitor.- Parameters:
monitor- If the given monitor is the same monitor as the monitor of this observer instance the monitor of this observer will be set tonullotherwise will nothing happen.
-
getMonitor
public org.eclipse.core.runtime.IProgressMonitor getMonitor()Returns the internal eclipse progress monitor if registered.- Returns:
- the monitor or
NullProgressMonitor
-