Merge "Issue #1196 Added isDisposed to CaveJFACEDialog." into development
Former-commit-id:0f3a3eec8d
[formerly8383388bad
] [formerly45dfc831e4
] [formerlyca060d7403
[formerly45dfc831e4
[formerly 18bfc3113a6e01b3b242aea1c5f0f1815037d8ff]]] Former-commit-id:ca060d7403
Former-commit-id: d1bdfebe6fe8391a89c8ac5b908f9660338992c6 [formerly87e08460b6
] Former-commit-id:92a8313d8f
This commit is contained in:
commit
d6924dfdd7
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue