private void helpPressed() { if (getTray() == null || fHelpButton != null && fHelpButton.getSelection()) { // help button was not selected before if (getShell() != null) { Control c = getShell().getDisplay().getFocusControl(); while (c != null) { if (c.isListening(SWT.Help)) { c.notifyListeners(SWT.Help, new Event()); break; } c = c.getParent(); } if (fHelpButton != null && getTray() != null) { fHelpButton.setSelection(true); } } } else { closeTray(); } }
throw new IllegalStateException("Tray was already open"); //$NON-NLS-1$ if (!isCompatibleLayout(getShell().getLayout())) { throw new UnsupportedOperationException("Trays not supported with custom layouts"); //$NON-NLS-1$ final Shell shell = getShell(); Control focusControl = shell.getDisplay().getFocusControl(); if (isContained(shell, focusControl)) {
throw new IllegalStateException("Tray was already open"); //$NON-NLS-1$ if (!isCompatibleLayout(getShell().getLayout())) { throw new UnsupportedOperationException("Trays not supported with custom layouts"); //$NON-NLS-1$ final Shell shell = getShell(); Control focusControl = shell.getDisplay().getFocusControl(); if (focusControl != null && isContained(shell, focusControl)) {
throw new IllegalStateException("Tray was already open"); //$NON-NLS-1$ if (!isCompatibleLayout(getShell().getLayout())) { throw new UnsupportedOperationException("Trays not supported with custom layouts"); //$NON-NLS-1$ final Shell shell = getShell(); Control focusControl = shell.getDisplay().getFocusControl(); if (focusControl != null && isContained(shell, focusControl)) {
throw new IllegalStateException("Tray was not open"); //$NON-NLS-1$ final Shell shell = getShell(); Control focusControl = shell.getDisplay().getFocusControl(); if (isContained(trayControl, focusControl) && nonTrayFocusControl!= null && !nonTrayFocusControl.isDisposed()) {
throw new IllegalStateException("Tray was not open"); //$NON-NLS-1$ Shell shell = getShell(); Control focusControl = shell.getDisplay().getFocusControl(); if (focusControl!= null && isContained(trayControl, focusControl)) {
throw new IllegalStateException("Tray was not open"); //$NON-NLS-1$ Shell shell = getShell(); Control focusControl = shell.getDisplay().getFocusControl(); if (focusControl!= null && isContained(trayControl, focusControl)) {