Search in sources :

Example 1 with LambdaMenuItem

use of de.tudarmstadt.ukp.clarin.webanno.support.lambda.LambdaMenuItem in project webanno by webanno.

the class BratAnnotationEditor method actionOpenContextMenu.

private void actionOpenContextMenu(AjaxRequestTarget aTarget, IRequestParameters request, CAS aCas, VID paramId) {
    List<IMenuItem> items = contextMenu.getItemList();
    items.clear();
    if (getModelObject().getSelection().isSpan()) {
        items.add(new LambdaMenuItem("Link to ...", _target -> actionArcRightClick(_target, paramId)));
    }
    extensionRegistry.generateContextMenuItems(items);
    if (!items.isEmpty()) {
        contextMenu.onOpen(aTarget);
    }
}
Also used : DIFFERENTIAL(de.tudarmstadt.ukp.clarin.webanno.brat.metrics.BratMetrics.RenderType.DIFFERENTIAL) FULL(de.tudarmstadt.ukp.clarin.webanno.brat.metrics.BratMetrics.RenderType.FULL) SpringBean(org.apache.wicket.spring.injection.annot.SpringBean) AnnotationEditorBase(de.tudarmstadt.ukp.clarin.webanno.api.annotation.AnnotationEditorBase) BratAnnotatorUiResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratAnnotatorUiResourceReference) BratVisualizerResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratVisualizerResourceReference) LoggerFactory(org.slf4j.LoggerFactory) IMenuItem(com.googlecode.wicket.jquery.ui.widget.menu.IMenuItem) WebAnnoCasUtil(de.tudarmstadt.ukp.clarin.webanno.api.annotation.util.WebAnnoCasUtil) VisualOptions(de.tudarmstadt.ukp.clarin.webanno.brat.message.VisualOptions) AnnotationEditorRenderedMetaDataKey(de.tudarmstadt.ukp.clarin.webanno.api.annotation.AnnotationEditorRenderedMetaDataKey) AnnotationException(de.tudarmstadt.ukp.clarin.webanno.api.annotation.exception.AnnotationException) StringUtils(org.apache.commons.lang3.StringUtils) BratAnnotationEditorProperties(de.tudarmstadt.ukp.clarin.webanno.brat.config.BratAnnotationEditorProperties) BratCssVisReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratCssVisReference) RequestCycle(org.apache.wicket.request.cycle.RequestCycle) Selection(de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.Selection) JavaScriptHeaderItem.forReference(org.apache.wicket.markup.head.JavaScriptHeaderItem.forReference) AnnotationEditorExtensionRegistry(de.tudarmstadt.ukp.clarin.webanno.api.annotation.AnnotationEditorExtensionRegistry) Map(java.util.Map) AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) ColoringService(de.tudarmstadt.ukp.clarin.webanno.api.annotation.coloring.ColoringService) JsonNode(com.fasterxml.jackson.databind.JsonNode) LambdaMenuItem(de.tudarmstadt.ukp.clarin.webanno.support.lambda.LambdaMenuItem) WebAnnoCasUtil.selectAnnotationByAddr(de.tudarmstadt.ukp.clarin.webanno.api.annotation.util.WebAnnoCasUtil.selectAnnotationByAddr) SpanAnnotationResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.SpanAnnotationResponse) IModel(org.apache.wicket.model.IModel) StringValue(org.apache.wicket.util.string.StringValue) ArcAnnotationResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.ArcAnnotationResponse) GetCollectionInformationResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.GetCollectionInformationResponse) NormalizationQueryResult(de.tudarmstadt.ukp.clarin.webanno.brat.render.model.NormalizationQueryResult) WicketUtil.serverTiming(de.tudarmstadt.ukp.clarin.webanno.support.wicket.WicketUtil.serverTiming) DoActionResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.DoActionResponse) Offsets(de.tudarmstadt.ukp.clarin.webanno.brat.render.model.Offsets) BratCssUiReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratCssUiReference) Set(java.util.Set) Component(org.apache.wicket.Component) MarkupContainer(org.apache.wicket.MarkupContainer) StopWatch(org.apache.commons.lang3.time.StopWatch) IHeaderResponse(org.apache.wicket.markup.head.IHeaderResponse) Collectors(java.util.stream.Collectors) IFeedback(org.apache.wicket.feedback.IFeedback) JQuerySvgDomResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.JQuerySvgDomResourceReference) JQuerySvgResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.JQuerySvgResourceReference) SKIP(de.tudarmstadt.ukp.clarin.webanno.brat.metrics.BratMetrics.RenderType.SKIP) ContextMenu(de.tudarmstadt.ukp.clarin.webanno.support.wicket.ContextMenu) ArrayNode(com.fasterxml.jackson.databind.node.ArrayNode) List(java.util.List) JQueryUILibrarySettings(com.googlecode.wicket.jquery.ui.settings.JQueryUILibrarySettings) BratConfigurationResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratConfigurationResourceReference) AnnotationLayer(de.tudarmstadt.ukp.clarin.webanno.model.AnnotationLayer) Optional(java.util.Optional) BratRenderer(de.tudarmstadt.ukp.clarin.webanno.brat.render.BratRenderer) BratUtilResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratUtilResourceReference) JQueryJsonResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.JQueryJsonResourceReference) VDocument(de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.model.VDocument) ExceptionUtils(org.apache.commons.lang3.exception.ExceptionUtils) JsonDiff(com.flipkart.zjsonpatch.JsonDiff) CasProvider(de.tudarmstadt.ukp.clarin.webanno.api.CasProvider) FeatureSupportRegistry(de.tudarmstadt.ukp.clarin.webanno.api.annotation.feature.FeatureSupportRegistry) BratVisualizerUiResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratVisualizerUiResourceReference) OffsetsList(de.tudarmstadt.ukp.clarin.webanno.brat.render.model.OffsetsList) TypeAdapter.decodeTypeName(de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter.TypeAdapter.decodeTypeName) AnnotationFS(org.apache.uima.cas.text.AnnotationFS) AnnotatorState(de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.AnnotatorState) CAS(org.apache.uima.cas.CAS) NormDataResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.NormDataResponse) RenderType(de.tudarmstadt.ukp.clarin.webanno.brat.metrics.BratMetrics.RenderType) HashSet(java.util.HashSet) AnnotationSchemaService(de.tudarmstadt.ukp.clarin.webanno.api.AnnotationSchemaService) GetDocumentResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.GetDocumentResponse) BratMetrics(de.tudarmstadt.ukp.clarin.webanno.brat.metrics.BratMetrics) BratAjaxResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratAjaxResourceReference) CssHeaderItem(org.apache.wicket.markup.head.CssHeaderItem) IRequestParameters(org.apache.wicket.request.IRequestParameters) Logger(org.slf4j.Logger) BratDispatcherResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.BratDispatcherResourceReference) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) AnnotationActionHandler(de.tudarmstadt.ukp.clarin.webanno.api.annotation.action.AnnotationActionHandler) IOException(java.io.IOException) AbstractDefaultAjaxBehavior(org.apache.wicket.ajax.AbstractDefaultAjaxBehavior) LoadConfResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.LoadConfResponse) WebjarsCssResourceReference(de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference) JSONUtil(de.tudarmstadt.ukp.clarin.webanno.support.JSONUtil) AbstractAjaxBehavior(org.apache.wicket.behavior.AbstractAjaxBehavior) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) AnnotationFeature(de.tudarmstadt.ukp.clarin.webanno.model.AnnotationFeature) JSONPatchResourceReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.JSONPatchResourceReference) OnDomReadyHeaderItem(org.apache.wicket.markup.head.OnDomReadyHeaderItem) VID(de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.VID) JQueryScrollbarWidthReference(de.tudarmstadt.ukp.clarin.webanno.brat.resource.JQueryScrollbarWidthReference) WicketUtil(de.tudarmstadt.ukp.clarin.webanno.support.wicket.WicketUtil) IMenuItem(com.googlecode.wicket.jquery.ui.widget.menu.IMenuItem) LambdaMenuItem(de.tudarmstadt.ukp.clarin.webanno.support.lambda.LambdaMenuItem)

Example 2 with LambdaMenuItem

use of de.tudarmstadt.ukp.clarin.webanno.support.lambda.LambdaMenuItem in project webanno by webanno.

the class SuggestionViewPanel method onClientEvent.

/**
 * Method is called, if user has clicked on a span or an arc in the sentence panel. The span or
 * arc respectively is identified and copied to the merge CAS.
 */
protected void onClientEvent(AjaxRequestTarget aTarget, UserAnnotationSegment aSegment) throws UIMAException, IOException, AnnotationException {
    if (isDocumentFinished(documentService, aSegment.getAnnotatorState())) {
        error("This document is already closed. Please ask the project manager to re-open it.");
        aTarget.addChildren(getPage(), IFeedback.class);
        return;
    }
    IRequestParameters request = getRequest().getPostParameters();
    StringValue action = request.getParameterValue(PARAM_ACTION);
    if (!action.isEmpty()) {
        String type = removePrefix(request.getParameterValue(PARAM_TYPE).toString());
        AnnotationLayer layer = schemaService.getLayer(TypeUtil.getLayerId(type));
        VID sourceVid = VID.parse(request.getParameterValue(PARAM_ID).toString());
        CAS targetCas = readEditorCas(aSegment.getAnnotatorState());
        CAS sourceCas = readAnnotatorCas(aSegment);
        AnnotatorState sourceState = aSegment.getAnnotatorState();
        if (CHAIN_TYPE.equals(layer.getType())) {
            error("Coreference annotations are not supported in curation");
            aTarget.addChildren(getPage(), IFeedback.class);
            return;
        }
        if (ACTION_CONTEXT_MENU.equals(action.toString())) {
            // No bulk actions supports for slots at the moment.
            if (sourceVid.isSlotSet()) {
                return;
            }
            List<IMenuItem> items = contextMenu.getItemList();
            items.clear();
            items.add(new LambdaMenuItem(String.format("Merge all %s", layer.getUiName()), _target -> actionAcceptAll(_target, aSegment, layer)));
            contextMenu.onOpen(aTarget);
            return;
        }
        // check if clicked on a span
        CasMerge casMerge = new CasMerge(schemaService);
        if (ACTION_SELECT_SPAN_FOR_MERGE.equals(action.toString())) {
            mergeSpan(casMerge, targetCas, sourceCas, sourceVid, sourceState.getDocument(), sourceState.getUser().getUsername(), layer);
        } else // check if clicked on an arc (relation or slot)
        if (ACTION_SELECT_ARC_FOR_MERGE.equals(action.toString())) {
            // this is a slot arc
            if (sourceVid.isSlotSet()) {
                mergeSlot(casMerge, targetCas, sourceCas, sourceVid, sourceState.getDocument(), sourceState.getUser().getUsername(), layer);
            } else // normal relation annotation arc is clicked
            {
                mergeRelation(casMerge, targetCas, sourceCas, sourceVid, sourceState.getDocument(), sourceState.getUser().getUsername(), layer);
            }
        }
        writeEditorCas(sourceState, targetCas);
        // Update timestamp
        AnnotationFS sourceAnnotation = selectAnnotationByAddr(sourceCas, sourceVid.getId());
        int sentenceNumber = getSentenceNumber(sourceAnnotation.getCAS(), sourceAnnotation.getBegin());
        sourceState.getDocument().setSentenceAccessed(sentenceNumber);
        if (sourceState.getPreferences().isScrollPage()) {
            sourceState.getPagingStrategy().moveToOffset(sourceState, targetCas, sourceAnnotation.getBegin(), CENTERED);
        }
        onChange(aTarget);
    }
}
Also used : TypeAdapter(de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter.TypeAdapter) SpringBean(org.apache.wicket.spring.injection.annot.SpringBean) Configuration(de.tudarmstadt.ukp.clarin.webanno.curation.casdiff.CasDiff.Configuration) ConfigurationSet(de.tudarmstadt.ukp.clarin.webanno.curation.casdiff.CasDiff.ConfigurationSet) LoggerFactory(org.slf4j.LoggerFactory) IMenuItem(com.googlecode.wicket.jquery.ui.widget.menu.IMenuItem) WebAnnoCasUtil(de.tudarmstadt.ukp.clarin.webanno.api.annotation.util.WebAnnoCasUtil) Sentence(de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Sentence) AnnotationException(de.tudarmstadt.ukp.clarin.webanno.api.annotation.exception.AnnotationException) CasMergeOperationResult(de.tudarmstadt.ukp.clarin.webanno.curation.casmerge.CasMergeOperationResult) CorrectionDocumentService(de.tudarmstadt.ukp.clarin.webanno.api.CorrectionDocumentService) VObject(de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.model.VObject) Map(java.util.Map) AlreadyMergedException(de.tudarmstadt.ukp.clarin.webanno.curation.casmerge.AlreadyMergedException) ColoringRules(de.tudarmstadt.ukp.clarin.webanno.api.annotation.coloring.ColoringRules) AnnotatorStateUtils.updateDocumentTimestampAfterWrite(de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.AnnotatorStateUtils.updateDocumentTimestampAfterWrite) AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) ColoringService(de.tudarmstadt.ukp.clarin.webanno.api.annotation.coloring.ColoringService) CurationContainer(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.CurationContainer) LambdaMenuItem(de.tudarmstadt.ukp.clarin.webanno.support.lambda.LambdaMenuItem) WebAnnoCasUtil.selectAnnotationByAddr(de.tudarmstadt.ukp.clarin.webanno.api.annotation.util.WebAnnoCasUtil.selectAnnotationByAddr) FeatureStructure(org.apache.uima.cas.FeatureStructure) CasMerge(de.tudarmstadt.ukp.clarin.webanno.curation.casmerge.CasMerge) IModel(org.apache.wicket.model.IModel) StringValue(org.apache.wicket.util.string.StringValue) ListView(org.apache.wicket.markup.html.list.ListView) WebAnnoCasUtil.getSentenceNumber(de.tudarmstadt.ukp.clarin.webanno.api.annotation.util.WebAnnoCasUtil.getSentenceNumber) UIMAException(org.apache.uima.UIMAException) GetCollectionInformationResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.GetCollectionInformationResponse) DiffResult(de.tudarmstadt.ukp.clarin.webanno.curation.casdiff.CasDiff.DiffResult) AnnotationSelection(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.AnnotationSelection) ListItem(org.apache.wicket.markup.html.list.ListItem) Collection(java.util.Collection) CENTERED(de.tudarmstadt.ukp.clarin.webanno.api.annotation.paging.FocusPosition.CENTERED) Model(org.apache.wicket.model.Model) UserDao(de.tudarmstadt.ukp.clarin.webanno.security.UserDao) Set(java.util.Set) MarkupContainer(org.apache.wicket.MarkupContainer) UserAnnotationSegment(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.UserAnnotationSegment) AnnotationDocument(de.tudarmstadt.ukp.clarin.webanno.model.AnnotationDocument) AnnotationDocumentState(de.tudarmstadt.ukp.clarin.webanno.model.AnnotationDocumentState) IFeedback(org.apache.wicket.feedback.IFeedback) ContextMenu(de.tudarmstadt.ukp.clarin.webanno.support.wicket.ContextMenu) LINK_ROLE_AS_LABEL(de.tudarmstadt.ukp.clarin.webanno.curation.casdiff.LinkCompareBehavior.LINK_ROLE_AS_LABEL) List(java.util.List) TypeUtil(de.tudarmstadt.ukp.clarin.webanno.api.annotation.util.TypeUtil) AnnotationLayer(de.tudarmstadt.ukp.clarin.webanno.model.AnnotationLayer) SourceDocument(de.tudarmstadt.ukp.clarin.webanno.model.SourceDocument) CasDiff.getDiffAdapters(de.tudarmstadt.ukp.clarin.webanno.curation.casdiff.CasDiff.getDiffAdapters) ApplicationEventPublisherHolder(de.tudarmstadt.ukp.clarin.webanno.support.spring.ApplicationEventPublisherHolder) BratRenderer(de.tudarmstadt.ukp.clarin.webanno.brat.render.BratRenderer) VDocument(de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.model.VDocument) USE(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.AnnotationState.USE) AnnotationFS(org.apache.uima.cas.text.AnnotationFS) AnnotatorState(de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.AnnotatorState) AGREE(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.AnnotationState.AGREE) CAS(org.apache.uima.cas.CAS) HashMap(java.util.HashMap) ColoringStrategy(de.tudarmstadt.ukp.clarin.webanno.api.annotation.coloring.ColoringStrategy) Mode(de.tudarmstadt.ukp.clarin.webanno.model.Mode) MergeConflictException(de.tudarmstadt.ukp.clarin.webanno.curation.casmerge.MergeConflictException) ArrayList(java.util.ArrayList) AnnotationSchemaService(de.tudarmstadt.ukp.clarin.webanno.api.AnnotationSchemaService) SourceListView(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.SourceListView) Token(de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token) AnnotationState(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.AnnotationState) User(de.tudarmstadt.ukp.clarin.webanno.security.model.User) GetDocumentResponse(de.tudarmstadt.ukp.clarin.webanno.brat.message.GetDocumentResponse) DISAGREE(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.AnnotationState.DISAGREE) Project(de.tudarmstadt.ukp.clarin.webanno.model.Project) IRequestParameters(org.apache.wicket.request.IRequestParameters) BratSuggestionVisualizer(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.BratSuggestionVisualizer) LinkedHashSet(java.util.LinkedHashSet) PreRenderer(de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.PreRenderer) DO_NOT_USE(de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.AnnotationState.DO_NOT_USE) DocumentService(de.tudarmstadt.ukp.clarin.webanno.api.DocumentService) CURATION(de.tudarmstadt.ukp.clarin.webanno.model.Mode.CURATION) Logger(org.slf4j.Logger) CasUtil.select(org.apache.uima.fit.util.CasUtil.select) CurationDocumentService(de.tudarmstadt.ukp.clarin.webanno.curation.storage.CurationDocumentService) IOException(java.io.IOException) RELATION_TYPE(de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.RELATION_TYPE) SPAN_TYPE(de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.SPAN_TYPE) AjaxComponentRespondListener(de.tudarmstadt.ukp.clarin.webanno.support.wicket.AjaxComponentRespondListener) BratAnnotatorUtility.isDocumentFinished(de.tudarmstadt.ukp.clarin.webanno.brat.util.BratAnnotatorUtility.isDocumentFinished) JSONUtil(de.tudarmstadt.ukp.clarin.webanno.support.JSONUtil) CasDiff.doDiffSingle(de.tudarmstadt.ukp.clarin.webanno.curation.casdiff.CasDiff.doDiffSingle) StringUtils.isBlank(org.apache.commons.lang3.StringUtils.isBlank) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) BulkAnnotationEvent(de.tudarmstadt.ukp.clarin.webanno.api.annotation.event.BulkAnnotationEvent) AnnotationFeature(de.tudarmstadt.ukp.clarin.webanno.model.AnnotationFeature) DiffAdapter(de.tudarmstadt.ukp.clarin.webanno.curation.casdiff.api.DiffAdapter) CHAIN_TYPE(de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.CHAIN_TYPE) VID(de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.VID) Collections(java.util.Collections) IMenuItem(com.googlecode.wicket.jquery.ui.widget.menu.IMenuItem) AnnotatorState(de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.AnnotatorState) AnnotationLayer(de.tudarmstadt.ukp.clarin.webanno.model.AnnotationLayer) VID(de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.VID) AnnotationFS(org.apache.uima.cas.text.AnnotationFS) CAS(org.apache.uima.cas.CAS) CasMerge(de.tudarmstadt.ukp.clarin.webanno.curation.casmerge.CasMerge) StringValue(org.apache.wicket.util.string.StringValue) LambdaMenuItem(de.tudarmstadt.ukp.clarin.webanno.support.lambda.LambdaMenuItem) IRequestParameters(org.apache.wicket.request.IRequestParameters)

Aggregations

IMenuItem (com.googlecode.wicket.jquery.ui.widget.menu.IMenuItem)2 AnnotationSchemaService (de.tudarmstadt.ukp.clarin.webanno.api.AnnotationSchemaService)2 ColoringService (de.tudarmstadt.ukp.clarin.webanno.api.annotation.coloring.ColoringService)2 AnnotationException (de.tudarmstadt.ukp.clarin.webanno.api.annotation.exception.AnnotationException)2 AnnotatorState (de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.AnnotatorState)2 VID (de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.VID)2 VDocument (de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.model.VDocument)2 WebAnnoCasUtil (de.tudarmstadt.ukp.clarin.webanno.api.annotation.util.WebAnnoCasUtil)2 WebAnnoCasUtil.selectAnnotationByAddr (de.tudarmstadt.ukp.clarin.webanno.api.annotation.util.WebAnnoCasUtil.selectAnnotationByAddr)2 GetCollectionInformationResponse (de.tudarmstadt.ukp.clarin.webanno.brat.message.GetCollectionInformationResponse)2 GetDocumentResponse (de.tudarmstadt.ukp.clarin.webanno.brat.message.GetDocumentResponse)2 BratRenderer (de.tudarmstadt.ukp.clarin.webanno.brat.render.BratRenderer)2 AnnotationFeature (de.tudarmstadt.ukp.clarin.webanno.model.AnnotationFeature)2 AnnotationLayer (de.tudarmstadt.ukp.clarin.webanno.model.AnnotationLayer)2 JSONUtil (de.tudarmstadt.ukp.clarin.webanno.support.JSONUtil)2 LambdaMenuItem (de.tudarmstadt.ukp.clarin.webanno.support.lambda.LambdaMenuItem)2 ContextMenu (de.tudarmstadt.ukp.clarin.webanno.support.wicket.ContextMenu)2 IOException (java.io.IOException)2 List (java.util.List)2 Map (java.util.Map)2