public PerspectivesPanel(ClientFactory clientFactory, EventBus eventBus) {
this.eventBus = eventBus;
this.clientFactory = clientFactory;
this.view = clientFactory.getPerspectivesPanelView();
this.view.setPresenter(this);
setPerspective(new AuthorPerspective());
String[] registeredPerspectiveTypes = clientFactory.getPerspectiveFactory().getRegisteredPerspectiveTypes();
for(String perspectiveType : registeredPerspectiveTypes) {
//TODO: Get perspective title from PerspectiveFactory
view.addPerspective(perspectiveType, perspectiveType);
}