peakml.util.swt.dialog
Class ProgressDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by 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)
           
 
Method Summary
 void dispose()
           
 void open()
           
 void setProgress(double p)
           
 void setTask(java.lang.Runnable task)
           
 
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
 

Constructor Detail

ProgressDialog

public ProgressDialog(org.eclipse.swt.widgets.Shell parent,
                      java.lang.String title)
Method Detail

setTask

public void setTask(java.lang.Runnable task)

open

public void open()

dispose

public void dispose()

setProgress

public void setProgress(double p)