Merge "Issue #1196 Added isDisposed to CaveJFACEDialog." into development

Former-commit-id: 0f3a3eec8d [formerly 8383388bad] [formerly 45dfc831e4] [formerly ca060d7403 [formerly 45dfc831e4 [formerly 18bfc3113a6e01b3b242aea1c5f0f1815037d8ff]]]
Former-commit-id: ca060d7403
Former-commit-id: d1bdfebe6fe8391a89c8ac5b908f9660338992c6 [formerly 87e08460b6]
Former-commit-id: 92a8313d8f
This commit is contained in:
Lee Venable 2012-09-27 16:35:10 -05:00 committed by Gerrit Code Review
commit d6924dfdd7

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.