use of org.uberfire.workbench.model.impl.PanelDefinitionImpl in project kie-wb-common by kiegroup.
the class AdministrationPerspective method buildPerspective.
@Perspective
public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName(AppConstants.INSTANCE.AdministrationPerspectiveName());
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("RepositoriesEditor")));
final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
west.setWidth(300);
west.setMinWidth(200);
west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("FileExplorer")));
perspective.getRoot().insertChild(CompassPosition.WEST, west);
return perspective;
}
use of org.uberfire.workbench.model.impl.PanelDefinitionImpl in project kie-wb-common by kiegroup.
the class HomePerspective method buildPerspective.
@Perspective
public PerspectiveDefinition buildPerspective() {
PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName("Home");
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest(DiagramPresenterScreen.SCREEN_ID)));
welcomePanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
welcomePanel.setMinHeight(100);
welcomePanel.setHeight(100);
welcomePanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(WelcomeScreen.SCREEN_ID)));
perspective.getRoot().insertChild(CompassPosition.NORTH, welcomePanel);
return perspective;
}
Aggregations