Search in sources :

Example 6 with CollectionViewPlace

use of edu.stanford.bmir.protege.web.shared.place.CollectionViewPlace 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)));
    });
}
Also used : CollectionViewPlace(edu.stanford.bmir.protege.web.shared.place.CollectionViewPlace) CollectionViewPlace(edu.stanford.bmir.protege.web.shared.place.CollectionViewPlace) Place(com.google.gwt.place.shared.Place)

Aggregations

CollectionViewPlace (edu.stanford.bmir.protege.web.shared.place.CollectionViewPlace)6 Place (com.google.gwt.place.shared.Place)4 CollectionItem (edu.stanford.bmir.protege.web.shared.collection.CollectionItem)3 MatchResult (com.google.gwt.regexp.shared.MatchResult)1 CollectionId (edu.stanford.bmir.protege.web.shared.collection.CollectionId)1 CreateCollectionItemsAction (edu.stanford.bmir.protege.web.shared.collection.CreateCollectionItemsAction)1 GetCollectionItemsAction (edu.stanford.bmir.protege.web.shared.collection.GetCollectionItemsAction)1 FormId (edu.stanford.bmir.protege.web.shared.form.FormId)1 ProjectId (edu.stanford.bmir.protege.web.shared.project.ProjectId)1