Merge "Issue #1196 Added isDisposed to CaveJFACEDialog." into development
Former-commit-id:8383388bad
[formerly45dfc831e4
] [formerly8383388bad
[formerly45dfc831e4
] [formerlyca060d7403
[formerly 18bfc3113a6e01b3b242aea1c5f0f1815037d8ff]]] Former-commit-id:ca060d7403
Former-commit-id:92a8313d8f
[formerly87e08460b6
] Former-commit-id:e25e9f9986
This commit is contained in:
commit
8bacd3b25b
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