Ejemplo n.º 1
0
  @Override
  public void renderHead(IHeaderResponse response) {
    super.renderHead(response);

    if (firstLoad) {
      firstLoad = false;
    } else if (bModel.getProject() != null) {
      // mergeVisualizer.setModelObject(bratAnnotatorModel);
      annotator.setCollection("#" + bModel.getProject().getName() + "/");
      annotator.bratInitRenderLater(response);
    }
  }
Ejemplo n.º 2
0
  /** for the first time the page is accessed, open the <b>open document dialog</b> */
  @Override
  public void renderHead(IHeaderResponse response) {
    super.renderHead(response);

    String jQueryString = "";
    if (firstLoad) {
      jQueryString += "jQuery('#showOpenDocumentModal').trigger('click');";
      firstLoad = false;
    }
    response.render(OnLoadHeaderItem.forScript(jQueryString));
    if (bModel.getProject() != null) {

      mergeVisualizer.setModelObject(bModel);
      mergeVisualizer.setCollection("#" + bModel.getProject().getName() + "/");
      mergeVisualizer.bratInitRenderLater(response);
    }
  }