Issue #1196 Added isDisposed to CaveJFACEDialog.
Change-Id: I6ad1c3e1ba9015d87d04603a30ac8d02bb36abe5 Former-commit-id:adc37587ed
[formerlyfa0913508c
] [formerlyd1e52778db
] [formerlybfd519cefe
[formerlyd1e52778db
[formerly 0eee43ff9fc99f027a295abebf64a98bbfeabe26]]] Former-commit-id:bfd519cefe
Former-commit-id: ef72f178f9df39ff086b54de96ca644132123d6a [formerly59b174d6bd
] Former-commit-id:54a1ad88b1
This commit is contained in:
parent
ebaead2c63
commit
b2ee32e743
1 changed files with 11 additions and 0 deletions
|
@ -216,6 +216,17 @@ public class CaveJFACEDialog extends Dialog implements
|
||||||
return (getShell() != null && !getShell().isDisposed());
|
return (getShell() != null && !getShell().isDisposed());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns if the dialog is disposed, a null dialog will not mean it is
|
||||||
|
* disposed as it may not have been opened yet.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public final boolean isDisposed() {
|
||||||
|
Shell shell = getShell();
|
||||||
|
return (shell != null && shell.isDisposed());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a callback to the dialog. This callback will be called when the
|
* Add a callback to the dialog. This callback will be called when the
|
||||||
* dialog is disposed.
|
* dialog is disposed.
|
||||||
|
|
Loading…
Add table
Reference in a new issue