Skip to content

Commit

Permalink
Merge branch 'release/35.x'
Browse files Browse the repository at this point in the history
* release/35.x:
  No issue: Allow access to maven central and other repos
  #5270 - Resizing a span also resizes other overlapping or stacked spans

% Conflicts:
%	.github/workflows/maven.yml
  • Loading branch information
reckart committed Feb 2, 2025
2 parents 102c177 + 381d42d commit dd34577
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
archive.ics.uci.edu:80
auth.docker.io:443
build.shibboleth.net:443
centralus.data.mcr.microsoft.com:443
download.eclipse.org:443
eastus.data.mcr.microsoft.com:443
github.com:443
Expand All @@ -46,6 +47,7 @@ jobs:
registry-1.docker.io:443
registry.npmjs.org:443
repo.maven.apache.org:443
repo.spring.io:443
repo1.maven.org:443
westus.data.mcr.microsoft.com:443
westus2.data.mcr.microsoft.com:443
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.apache.uima.jcas.tcas.Annotation;
import org.springframework.context.event.EventListener;

import de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token;
import de.tudarmstadt.ukp.inception.schema.api.AnnotationSchemaService;

public class TokenAttachedSpanChangeListener
Expand All @@ -39,9 +40,11 @@ public TokenAttachedSpanChangeListener(AnnotationSchemaService aSchemaService)
@EventListener
public void onSpanMovedEvent(SpanMovedEvent aEvent)
{
adjustAttachedAnnotations(aEvent);
adjustSingleTokenAnchoredAnnotations(aEvent);
adjustTokenAnchoredAnnotations(aEvent);
if (aEvent.getAnnotation() instanceof Token) {
adjustAttachedAnnotations(aEvent);
adjustSingleTokenAnchoredAnnotations(aEvent);
adjustTokenAnchoredAnnotations(aEvent);
}
}

void adjustTokenAnchoredAnnotations(SpanMovedEvent aEvent)
Expand Down

0 comments on commit dd34577

Please sign in to comment.