예제 #1
0
    /* (non-Javadoc)
     * @see name.martingeisse.common.terms.IConsumer#consume(java.lang.Object)
     */
    @Override
    public void consume(final CompilerResult compilerResult) {

      // update marker list
      setCompilerMarkersFromResult(compilerResult);
      AjaxRequestUtil.markForRender(compilerMarkersContainer);

      // update preview
      editableContent = compilerResult.getDocument();
      previewIframe.renderReloadScript();
    }
예제 #2
0
 private void setCompilerMarkersFromResult(final CompilerResult compilerResult) {
   compilerMarkers = new ArrayList<>(compilerResult.getMarkers());
   Collections.sort(compilerMarkers, new CompilerMarkerErrorLevelComparator());
 }