Révision 2601
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/AdvancedProgressMonitorDialog.java (revision 2601) | ||
---|---|---|
5 | 5 |
import java.util.TimerTask; |
6 | 6 |
|
7 | 7 |
import org.eclipse.core.runtime.IProgressMonitor; |
8 |
import org.eclipse.jface.dialogs.ProgressMonitorDialog; |
|
9 | 8 |
import org.eclipse.jface.operation.IRunnableWithProgress; |
9 |
import org.eclipse.swt.widgets.Composite; |
|
10 | 10 |
import org.eclipse.swt.widgets.Display; |
11 | 11 |
import org.eclipse.swt.widgets.Shell; |
12 |
import org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog; |
|
12 | 13 |
import org.txm.core.results.TXMResult; |
13 | 14 |
|
14 | 15 |
/** |
15 |
* An advanced progress monitor modal dialog managing delay before displaying and the forcing of cancel using Thread.stop(). |
|
16 |
* An advanced progress monitor modal dialog managing delay before displaying the window |
|
17 |
* and the forcing of cancel using Thread.stop(). |
|
16 | 18 |
* |
17 | 19 |
* @author sjacquot |
18 | 20 |
* |
19 | 21 |
*/ |
20 |
public class AdvancedProgressMonitorDialog extends ProgressMonitorDialog { |
|
22 |
public class AdvancedProgressMonitorDialog extends ProgressMonitorJobsDialog {
|
|
21 | 23 |
|
22 | 24 |
/** |
23 | 25 |
* Result. |
... | ... | |
55 | 57 |
} |
56 | 58 |
|
57 | 59 |
|
60 |
@Override |
|
61 |
protected void createDetailsButton(Composite parent) { |
|
62 |
// to not create the "Details" button |
|
63 |
} |
|
64 |
|
|
65 |
@Override |
|
66 |
protected void configureShell(final Shell shell) { |
|
67 |
super.configureShell(shell); |
|
68 |
// set window title to result start computing message |
|
69 |
shell.setText(this.result.getComputingStartMessage()); |
|
70 |
} |
|
71 |
|
|
58 | 72 |
/** |
59 | 73 |
* Runs the computing process on the stored <code>TXMResult</code>. |
60 | 74 |
* |
Formats disponibles : Unified diff