private void showPageAndEntity(String page, String entityId) { new TouchLastActivityServiceCall().execute(); ProjectWorkspaceWidgets workspace = Scope.get().getComponent(ProjectWorkspaceWidgets.class); if (historyToken.getPage() == null && page == null) page = HistoryToken.START_PAGE; if (page != null) workspace.showPage(page); if (entityId != null) { if (ScrumGwt.isEntityReferenceOrWikiPage(entityId)) { workspace.showEntityByReference(entityId); } else { if ("Forum".equals(historyToken.getPage())) { ForumSupport entity = (ForumSupport) AEntity.getById(entityId); workspace.showForum(entity); } else { workspace.showEntityById(entityId); } } } // if (search != null && // !Page.getPageName(SearchResultsWidget.class).equals(historyToken.getPage())) // { // search.clear(); // } }
public void onProjectChanged(String projectId) { if (projectId == null) { showUserMode(historyToken.getPage()); } else { try { showProject(projectId, historyToken.getPage(), historyToken.getEntityId()); } catch (Exception ex) { log.error("Opening project failed:", projectId, ex); showUserMode(historyToken.getPage()); } } }
private void showPageAndEntity() { showPageAndEntity(historyToken.getPage(), historyToken.getEntityId()); }