use of org.uberfire.workbench.model.impl.PartDefinitionImpl in project kie-wb-common by kiegroup.
the class SocialHomePagePerspective method buildPerspective.
@Perspective
public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition p = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
p.setName("Social Home Page Perspective");
final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
west.setWidth(450);
west.setMinWidth(450);
west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("SocialHomePageSidePresenter")));
p.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("SocialHomePageMainPresenter")));
p.getRoot().insertChild(CompassPosition.WEST, west);
return p;
}
use of org.uberfire.workbench.model.impl.PartDefinitionImpl in project kie-wb-common by kiegroup.
the class UserHomePagePerspective method buildPerspective.
@Perspective
public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition p = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
p.setName(Constants.INSTANCE.PeoplePerspective());
final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
west.setWidth(350);
west.setMinWidth(350);
west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("UserHomePageSidePresenter")));
p.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("UserHomePageMainPresenter")));
p.getRoot().insertChild(CompassPosition.WEST, west);
return p;
}
use of org.uberfire.workbench.model.impl.PartDefinitionImpl in project kie-wb-common by kiegroup.
the class DataSourceManagementPerspective method buildPerspective.
@Perspective
public PerspectiveDefinition buildPerspective() {
PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName("Data Source Authoring");
final PanelDefinition west = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
west.setWidth(400);
west.setMinWidth(300);
west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(DataSourceDefExplorerScreen.SCREEN_ID)));
perspective.getRoot().insertChild(CompassPosition.WEST, west);
return perspective;
}
use of org.uberfire.workbench.model.impl.PartDefinitionImpl in project kie-wb-common by kiegroup.
the class LibraryPlaces method goToProjectMetrics.
public void goToProjectMetrics() {
final PlaceRequest metricsScreen = new DefaultPlaceRequest(LibraryPlaces.PROJECT_METRICS_SCREEN);
final PartDefinitionImpl part = new PartDefinitionImpl(metricsScreen);
part.setSelectable(false);
placeManager.goTo(part, libraryPerspective.getRootPanel());
setupLibraryBreadCrumbsForProjectMetrics();
projectMetricsEvent.fire(new WorkbenchProjectMetricsEvent(projectContext.getActiveWorkspaceProject().orElseThrow(() -> new IllegalStateException("Cannot fire event for project metrics without an active project."))));
}
use of org.uberfire.workbench.model.impl.PartDefinitionImpl in project kie-wb-common by kiegroup.
the class LibraryPlaces method goToOrganizationalUnits.
public void goToOrganizationalUnits() {
if (closeAllPlacesOrNothing()) {
PortablePreconditions.checkNotNull("libraryPerspective.closeAllPlacesOrNothing", libraryPerspective);
projectContextChangeEvent.fire(new WorkspaceProjectContextChangeEvent());
final DefaultPlaceRequest placeRequest = new DefaultPlaceRequest(LibraryPlaces.ORGANIZATIONAL_UNITS_SCREEN);
final PartDefinitionImpl part = new PartDefinitionImpl(placeRequest);
part.setSelectable(false);
placeManager.goTo(part, libraryPerspective.getRootPanel());
setupLibraryBreadCrumbs();
}
}
Aggregations