Révision 2566
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 2566) | ||
|---|---|---|
| 395 | 395 |
|
| 396 | 396 |
// since some editor fields need some values of their parent, |
| 397 | 397 |
// ensure the parent is ready (e.g. Sub-corpus properties in Cooccurrence editor, etc.) |
| 398 |
|
|
| 399 |
// FIXME: SJ: tests to show modal blocking cancelable progression dialog |
|
| 398 |
// show modal blocking cancelable progression dialog |
|
| 400 | 399 |
try {
|
| 401 | 400 |
if (!this.getResult().getParent().hasBeenComputedOnce()) {
|
| 402 | 401 |
|
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/AdvancedProgressMonitorDialog.java (revision 2566) | ||
|---|---|---|
| 11 | 11 |
import org.txm.core.results.TXMResult; |
| 12 | 12 |
|
| 13 | 13 |
/** |
| 14 |
* An advanced progress monitor modal dialog managing delay before display and the force of cancel using Thread.stop(). |
|
| 14 |
* An advanced progress monitor modal dialog managing delay before displaying and the force of cancel using Thread.stop().
|
|
| 15 | 15 |
* |
| 16 | 16 |
* @author sjacquot |
| 17 | 17 |
* |
| ... | ... | |
| 28 | 28 |
|
| 29 | 29 |
|
| 30 | 30 |
/** |
| 31 |
* Creates a modal progress monitor dialog. |
|
| 31 | 32 |
* |
| 32 | 33 |
* @param parent |
| 34 |
* @param result |
|
| 33 | 35 |
* @param delayBeforeOpen delay in ms before opening the dialog after starting runnable |
| 34 | 36 |
*/ |
| 35 | 37 |
public AdvancedProgressMonitorDialog(Shell parent, TXMResult result, int delayBeforeOpen) {
|
| 36 | 38 |
super(parent); |
| 37 | 39 |
this.result = result; |
| 38 | 40 |
this.delayBeforeOpen = delayBeforeOpen; |
| 39 |
// this.setBlockOnOpen(shouldBlock); |
|
| 40 | 41 |
this.setOpenOnRun(false); |
| 41 | 42 |
} |
| 42 | 43 |
|
| 43 | 44 |
/** |
| 45 |
* Creates a modal progress monitor dialog. |
|
| 44 | 46 |
* |
| 45 | 47 |
* @param parent |
| 48 |
* @param result |
|
| 46 | 49 |
*/ |
| 47 | 50 |
public AdvancedProgressMonitorDialog(Shell parent, TXMResult result) {
|
| 48 | 51 |
this(parent, result, 1000); |
Formats disponibles : Unified diff