/** Returns the root shell of the given control. */ public static Shell rootShell(Control ctl) { Shell shell; if (ctl instanceof Shell) { shell = (Shell) ctl; } else { shell = ctl.getShell(); } return TreeQuery.root(SwtMisc.treeDefShell(), shell); }
/** Returns the root shell of the given control. */ public static Shell rootShell(Control ctl) { Shell shell; if (ctl instanceof Shell) { shell = (Shell) ctl; } else { shell = ctl.getShell(); } return TreeQuery.root(SwtMisc.treeDefShell(), shell); }