.getEditorInput()).getFile()).getName();
if (currentFile
.equalsIgnoreCase(scribbleFile.getName())) {
editor.doSave(new NullProgressMonitor());
BrowserView browser = (BrowserView) page
.showView(BrowserView.ID_BROWSER);
browser.setUrl(scribbleURL);
browser.setFocus();
} else {
// IEditorPart editorPart =
// IDE.openEditor(page,scribbleFile,true);
IDE.openEditor(page, scribbleFile, true);
if (clearOnLoad) {
editor.getDocumentProvider().getDocument(
editor.getEditorInput()).set("");
}
if (loadBrowser) {
BrowserView browser = (BrowserView) page
.showView(BrowserView.ID_BROWSER);
browser.setUrl(scribbleURL);
// browser.refresh();
}
}
editor.setFocus();
}