use of org.uberfire.client.workbench.docks.UberfireDock in project kie-wb-common by kiegroup.
the class StunnerDocksHandler method provideDocks.
@Override
public Collection<UberfireDock> provideDocks(String perspectiveIdentifier) {
List<UberfireDock> result = new ArrayList<>();
result.add(new UberfireDock(UberfireDockPosition.EAST, "PENCIL_SQUARE_O", new DefaultPlaceRequest("ProjectDiagramPropertiesScreen"), perspectiveIdentifier).withSize(450).withLabel(constants.DocksStunnerPropertiesTitle()));
result.add(new UberfireDock(UberfireDockPosition.EAST, "EYE", new DefaultPlaceRequest("ProjectDiagramExplorerScreen"), perspectiveIdentifier).withSize(450).withLabel(constants.DocksStunnerExplorerTitle()));
return result;
}
use of org.uberfire.client.workbench.docks.UberfireDock in project kie-wb-common by kiegroup.
the class AuthoringWorkbenchDocks method setup.
public void setup(String authoringPerspectiveIdentifier, PlaceRequest projectExplorerPlaceRequest) {
this.authoringPerspectiveIdentifier = authoringPerspectiveIdentifier;
projectExplorerDock = new UberfireDock(UberfireDockPosition.WEST, IconType.ADJUST.toString(), projectExplorerPlaceRequest, authoringPerspectiveIdentifier).withSize(400).withLabel(constants.DocksProjectExplorerTitle());
componentPaletteDock = new UberfireDock(UberfireDockPosition.WEST, IconType.CUBES.toString(), new DefaultPlaceRequest(LayoutComponentPaletteScreen.SCREEN_ID), authoringPerspectiveIdentifier).withSize(400).withLabel(constants.LayoutEditorComponentPalette());
uberfireDocks.add(projectExplorerDock);
uberfireDocks.hide(UberfireDockPosition.EAST, authoringPerspectiveIdentifier);
}
use of org.uberfire.client.workbench.docks.UberfireDock in project kie-wb-common by kiegroup.
the class AuthoringWorkbenchDocksTest method createNewWorkbenchDocksHandler.
protected TestWorkbenchDocksHandler createNewWorkbenchDocksHandler() {
List<UberfireDock> docks = new ArrayList<>();
docks.add(new UberfireDock(UberfireDockPosition.EAST, "RANDOM", placeRequest, AUTHORING_PERSPECTIVE));
docks.add(new UberfireDock(UberfireDockPosition.EAST, "RANDOM", placeRequest, AUTHORING_PERSPECTIVE));
return new TestWorkbenchDocksHandler(docks);
}
use of org.uberfire.client.workbench.docks.UberfireDock in project kie-wb-common by kiegroup.
the class DataModellerDocksHandler method provideDocks.
@Override
public Collection<UberfireDock> provideDocks(String perspectiveIdentifier) {
List<UberfireDock> result = new ArrayList<>();
if (lastActiveContext == null) {
lastActiveContext = dataModelerWBContext.getActiveContext();
}
if (isGraphicMode(lastActiveContext)) {
result.add(new UberfireDock(UberfireDockPosition.EAST, "RANDOM", new DefaultPlaceRequest("DroolsDomainScreen"), perspectiveIdentifier).withSize(450).withLabel(constants.DocksDroolsJBPMTitle()));
result.add(new UberfireDock(UberfireDockPosition.EAST, "BRIEFCASE", new DefaultPlaceRequest("JPADomainScreen"), perspectiveIdentifier).withSize(450).withLabel(constants.DocksPersistenceTitle()));
result.add(new UberfireDock(UberfireDockPosition.EAST, "COG", new DefaultPlaceRequest("AdvancedDomainScreen"), perspectiveIdentifier).withSize(450).withLabel(constants.DocksAdvancedTitle()));
if (authorizationManager.authorize(WorkbenchFeatures.PLANNER_AVAILABLE, sessionInfo.getIdentity())) {
result.add(new UberfireDock(UberfireDockPosition.EAST, WorkbenchImageResources.INSTANCE.optaPlannerDisabledIcon(), WorkbenchImageResources.INSTANCE.optaPlannerEnabledIcon(), new DefaultPlaceRequest("PlannerDomainScreen"), perspectiveIdentifier).withSize(450).withLabel(constants.DocksOptaPlannerTitle()));
}
}
return result;
}
Aggregations