Search in sources :

Example 1 with ProjectView

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();
    }
}
Also used : ProjectView(de.catma.ui.module.project.ProjectView) ConflictedProjectView(de.catma.ui.module.project.ConflictedProjectView)

Aggregations

ConflictedProjectView (de.catma.ui.module.project.ConflictedProjectView)1 ProjectView (de.catma.ui.module.project.ProjectView)1