use of com.google.gwt.place.shared.Place in project webprotege by protegeproject.
the class CollectionItemListPresenter method goToSelectedItem.
void goToSelectedItem() {
view.getSelection().ifPresent(collectionItem -> {
Place place = placeController.getWhere();
if (!(place instanceof CollectionViewPlace)) {
return;
}
CollectionViewPlace collectionViewPlace = (CollectionViewPlace) place;
placeController.goTo(new CollectionViewPlace(collectionViewPlace.getProjectId(), collectionViewPlace.getCollectionId(), collectionViewPlace.getFormId(), Optional.of(collectionItem)));
});
}
use of com.google.gwt.place.shared.Place in project webprotege by protegeproject.
the class EditProjectPrefixDeclarationsHandlerImpl method handleEditProjectPrefixes.
@Override
public void handleEditProjectPrefixes() {
Place currentPlace = placeController.getWhere();
if (currentPlace instanceof HasProjectId) {
ProjectId projectId = ((HasProjectId) currentPlace).getProjectId();
ProjectPrefixDeclarationsPlace prefixesPlace = new ProjectPrefixDeclarationsPlace(projectId, Optional.ofNullable(currentPlace));
placeController.goTo(prefixesPlace);
}
}
Aggregations