EOEntity fileEntity = ((EOModelEditorInput) getEditorInput()).getFileEntity(); if (fileEntity != null) { setSelectedEntity(fileEntity); setActivePage(1); }
  protected void createPages() {    try {      myEntitiesTableEditor = new EOEntitiesTableEditor();      addPage(0, myEntitiesTableEditor, getEditorInput());      setPageText(0, "Entites");      myEntityEditor = new EOEntityEditor();      addPage(1, myEntityEditor, getEditorInput());      setPageText(1, "Entity");      EOModelSelectionChangedListener modelSelectionChangedListener = new EOModelSelectionChangedListener();      myEntitiesTableEditor.addSelectionChangedListener(modelSelectionChangedListener);      EOEntitySelectionChangedListener entitySelectionChangedListener = new EOEntitySelectionChangedListener();      myEntityEditor.addSelectionChangedListener(entitySelectionChangedListener);    }    catch (PartInitException e) {      ErrorDialog.openError(getSite().getShell(), "Error creating editor.", null, e.getStatus());    }  }