use of de.catma.ui.module.project.ProjectView in project catma by forTEXT.
the class MainView method handleRouteToProject.
@Override
public void handleRouteToProject(RouteToProjectEvent routeToProjectEvent) {
if (isNewTarget(routeToProjectEvent.getClass())) {
if (projectView == null) {
projectView = new ProjectView(projectManager, eventBus);
setContent(projectView);
projectView.setProjectReference(routeToProjectEvent.getProjectReference());
} else {
setContent(projectView);
if (routeToProjectEvent.isReloadProject()) {
projectView.reloadProject(routeToProjectEvent.getProjectReference());
}
}
currentRoute = routeToProjectEvent.getClass();
}
}
Aggregations