{
// Insert an action bar contributor if none is specified in the editor
if (getEditorSite().getActionBarContributor() == null)
{
IActionBars actionBars = getEditorSite().getActionBars();
EditorActionBars editorActionBars = (EditorActionBars)actionBars;
SapphireEditorActionBarContributor actionBarContributor = new SapphireEditorActionBarContributor();
actionBarContributor.init(actionBars, this.getSite().getPage());
editorActionBars.setEditorContributor(actionBarContributor);
}
String error = null;
final IFile file = getFile();