use of edu.stanford.bmir.protege.web.shared.place.ProjectPrefixDeclarationsPlace in project webprotege by protegeproject.
the class ProjectPrefixDeclarationsPresenter method getNextPlace.
/**
* Gets the next place
* @return The next place to go to. Possibly empty inidicating the next place is not specified.
*/
private Optional<Place> getNextPlace() {
Place place = placeController.getWhere();
if (!(place instanceof ProjectPrefixDeclarationsPlace)) {
return Optional.empty();
}
ProjectPrefixDeclarationsPlace prefixesPlace = (ProjectPrefixDeclarationsPlace) place;
return prefixesPlace.getNextPlace();
}
use of edu.stanford.bmir.protege.web.shared.place.ProjectPrefixDeclarationsPlace 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