public void handleEvent(Event event) {
Object[] listeners= fFocusListeners.getListeners();
for (int i= 0; i < listeners.length; i++) {
FocusListener focusListener= (FocusListener)listeners[i];
if (event.type == SWT.Activate) {
focusListener.focusGained(new FocusEvent(event));
} else {
focusListener.focusLost(new FocusEvent(event));
}
}
}
};
fShell.addListener(SWT.Deactivate, fShellListener);