@PostConstruct public void setup() { libraryBreadcrumbs.init(this); projectContext.addChangeHandler(this); placeManager.registerPerspectiveCloseChain(LIBRARY_PERSPECTIVE, (chain, place) -> { if (LIBRARY_PERSPECTIVE.equals(place.getIdentifier())) { closeAllPlacesOrNothing(chain::execute); } else { closePlace(chain::execute, place); } }); }