Community
Participate
Working Groups
event.processEvent();
if( event.doit ) {
Shell.this.dispose();
Shell[] dialogShells = getShells();
for( int i = 0; i < dialogShells.length; i++ ) {
dialogShells[ i ].dispose();
}
} );
///////////
// Disposal
final void releaseParent() {
void releaseChildren() {
super.releaseChildren();
void releaseParent() {
// Do not call super.releaseParent()
// This method would try to remove a child-shell from its ControlHolder
// but shells are currently not added to the ControlHolder of its parent
shell.setVisible( false );
assertEquals( "", log.toString() );
public void testCloseChildShells() {
Display display = new Display();
Shell shell = new Shell( display, SWT.NONE );
shell.open();
Shell childShell = new Shell( shell );
shell.close();
assertTrue( childShell.isDisposed() );
public void testDisposeChildShell() {
childShell.dispose();
childShell = new Shell( shell );
shell.dispose();
public void testCreateDescendantShell() {