Issue #1196 Added isDisposed to CaveJFACEDialog.

Change-Id: I6ad1c3e1ba9015d87d04603a30ac8d02bb36abe5

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

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.