IEditorReference[] editorReferences = page.getEditorReferences();
if (editorReferences.length > 1) {
MessageBox confirmDialog = new MessageBox(page.getWorkbenchWindow().getShell(), SWT.ICON_QUESTION | SWT.YES | SWT.NO);
confirmDialog.setText(Messages.ApplicationActionBarAdvisor_DISABLE_TABBED_BROWSING);
confirmDialog.setMessage(NLS.bind(Messages.ApplicationActionBarAdvisor_TABS_MESSAGE, editorReferences.length));
if (confirmDialog.open() == SWT.YES)
OwlUI.closeOtherEditors();
else
doit = false;
}
}