class LibraryPerspective {

    public void perspectiveChangeEvent(@Observes PerspectiveChange event) {
        if (event.getIdentifier().equals(LibraryPlaces.LIBRARY_PERSPECTIVE)) {
            if (refresh) {
                libraryPlaces.refresh(() -> {
                    if (getRootPanel() != null) {
                        libraryPlaces.goToLibrary();
                    }
                });
            } else {
                libraryPlaces.refresh(() -> {
                });
            }
        }
    }

    public  LibraryPerspective();
    @Inject public  LibraryPerspective(final LibraryPlaces libraryPlaces,
                              final Event<WorkspaceProjectContextChangeEvent> projectContextChangeEvent);

}