EntityPageDisplayer
178179180181182183184185186187188
private EntityPageDisplayer createEntityPageDisplayer(InterchangeView view) { EditorLaunchMode mode = EditorLaunchModePreference.get(); switch (mode) { case DIALOG: return new DetachedEntityPageDisplayer(view); case TAB: return new ViewEntityPageDisplayer(view); } throw new IllegalStateException("Unexpected launch mode: " + mode); }