peakml.util.swt.dialog
Class ProgressDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
peakml.util.swt.dialog.ProgressDialog
public class ProgressDialog
- extends org.eclipse.swt.widgets.Dialog
Implementation of a progress-dialog. The update-process for the dialog is executed
inside a thread, which can update the progress-bar with a call to setProgress. This
method is synchronized so it won't wreak havoc on the ui-components.
ProgressDialog _dlg = new ProgressDialog(shell)
{
Constructor Summary |
ProgressDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.String title)
|
Methods inherited from class org.eclipse.swt.widgets.Dialog |
getParent, getStyle, getText, setText |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProgressDialog
public ProgressDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.String title)
setTask
public void setTask(java.lang.Runnable task)
open
public void open()
dispose
public void dispose()
setProgress
public void setProgress(double p)