Search in sources :

Example 1 with ForcedPlaceRequest

use of org.uberfire.mvp.impl.ForcedPlaceRequest 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);
            }
        }
    });
}
Also used : ForcedPlaceRequest(org.uberfire.mvp.impl.ForcedPlaceRequest) PlaceRequest(org.uberfire.mvp.PlaceRequest) ForcedPlaceRequest(org.uberfire.mvp.impl.ForcedPlaceRequest) PerspectiveActivity(org.uberfire.client.mvp.PerspectiveActivity)

Aggregations

PerspectiveActivity (org.uberfire.client.mvp.PerspectiveActivity)1 PlaceRequest (org.uberfire.mvp.PlaceRequest)1 ForcedPlaceRequest (org.uberfire.mvp.impl.ForcedPlaceRequest)1