use of annis.libgui.media.PDFControllerImpl in project ANNIS by korpling.
the class SearchView method enter.
@Override
public void enter(ViewChangeListener.ViewChangeEvent event) {
if (event.getOldView() == event.getNewView()) {
return;
}
InstanceConfig config = ui.getInstanceConfig();
Page.getCurrent().setTitle(config.getInstanceDisplayName() + " (ANNIS Corpus Search)");
Page.getCurrent().addUriFragmentChangedListener(this);
getSession().addRequestHandler(new CitationRequestHandler());
getSession().setAttribute(MediaController.class, new MediaControllerImpl());
getSession().setAttribute(PDFController.class, new PDFControllerImpl());
// the following shoul
checkCitation();
lastEvaluatedFragment = "";
Background.run(new VersionChecker());
evaluateFragment(Page.getCurrent().getUriFragment());
if (config.isLoginOnStart() && toolbar != null && Helper.getUser() == null) {
toolbar.showLoginWindow(false);
}
}
Aggregations