return currentEditor;
}
public final void checkOpen(IEditor newEditor, final AsyncCallback <Boolean> callback) {
if (currentEditor != null && !currentEditor.isDirty() && currentEditor instanceof ViewBrowserEditor && !(newEditor instanceof ViewBrowserEditor)) {
ViewBrowserEditor viewEdi = (ViewBrowserEditor) currentEditor;
if (viewEdi.hasOpenViews()) {
String messageText = constants.closeViewHint();
MessageBox.confirm(constants.closeEditor(), messageText,
new Listener<WindowEvent>() {
public void handleEvent(WindowEvent be) {
if (be.buttonClicked.getItemId()