Community
Participate
Working Groups
}
private static boolean isAccessible( final Control control ) {
Shell controlShell = control.getShell();
Shell activeShell = control.getDisplay().getActiveShell();
return control.getEnabled()
&& control.getVisible()
&& isShellAccessible( control.getShell() );
&& controlShell == activeShell
&& isShellAccessible( controlShell );
private static boolean isAccessible( final Menu menu ) {