if(!running && lastEditorPart != null && activeEditor != lastEditorPart) { Display.getCurrent().asyncExec(new Runnable() {  public void run() { running = true; IViewReference[] viewReferences =  WorkbenchUtilitiesPlugin.getActivePage().getViewReferences(); WorkbenchUtilitiesPlugin.getActivePage().activate(viewReferences[0].getPart(false));  Display.getCurrent().asyncExec(new Runnable() {  public void run() { WorkbenchUtilitiesPlugin.getActivePage().activate(activeEditor);  Display.getDefault().asyncExec(new Runnable() { public void run() { setFocus(); running = false; } }); }  }); }  }); }
	protected void pageChange(int newPageIndex) {		super.pageChange(newPageIndex);		final IEditorPart activeEditor = getEditor(newPageIndex);		if (activeEditor != null) {			if (activeEditor instanceof IEmbeddedEditorSelected) {				IEmbeddedEditorSelected embeddedEditorPageChanged = (IEmbeddedEditorSelected) activeEditor;				embeddedEditorPageChanged.editorSelected();			}		}	}