/* (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(); }
private void setCompilerMarkersFromResult(final CompilerResult compilerResult) { compilerMarkers = new ArrayList<>(compilerResult.getMarkers()); Collections.sort(compilerMarkers, new CompilerMarkerErrorLevelComparator()); }