use of org.uberfire.client.mvp.PerspectiveActivity in project kie-wb-common by kiegroup.
the class WorkbenchConfigurationPopup method refreshPerspective.
private void refreshPerspective() {
final PerspectiveActivity currentPerspective = perspectiveManager.getCurrentPerspective();
perspectiveManager.removePerspectiveStates(new org.uberfire.mvp.Command() {
@Override
public void execute() {
if (currentPerspective != null) {
final PlaceRequest pr = new ForcedPlaceRequest(currentPerspective.getIdentifier(), currentPerspective.getPlace().getParameters());
placeManager.goTo(pr);
}
}
});
}
use of org.uberfire.client.mvp.PerspectiveActivity in project kie-wb-common by kiegroup.
the class DefaultWorkbenchFeaturesMenusHelper method getPerspectivesMenuItems.
public List<MenuItem> getPerspectivesMenuItems() {
final List<MenuItem> perspectives = new ArrayList<>();
for (final PerspectiveActivity perspective : getPerspectiveActivities()) {
final String name = perspective.getDefaultPerspectiveLayout().getName();
final MenuItem item = newSimpleItem(name).perspective(perspective.getIdentifier()).endMenu().build().getItems().get(0);
perspectives.add(item);
}
return perspectives;
}
Aggregations