Issue #1196 Added isDisposed to CaveJFACEDialog.

Change-Id: I6ad1c3e1ba9015d87d04603a30ac8d02bb36abe5

Former-commit-id: adc37587ed [formerly fa0913508c] [formerly d1e52778db] [formerly bfd519cefe [formerly d1e52778db [formerly 0eee43ff9fc99f027a295abebf64a98bbfeabe26]]]
Former-commit-id: bfd519cefe
Former-commit-id: ef72f178f9df39ff086b54de96ca644132123d6a [formerly 59b174d6bd]
Former-commit-id: 54a1ad88b1
This commit is contained in:
Roger Ferrel 2012-09-27 16:31:11 -05:00
parent ebaead2c63
commit b2ee32e743

View file

@ -216,6 +216,17 @@ public class CaveJFACEDialog extends Dialog implements
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
* dialog is disposed.