Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Athen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kallimachos
Athen
Commits
f8bbfab7
Commit
f8bbfab7
authored
Feb 22, 2018
by
Markus Krug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maps work as expected
parent
a9354772
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
de.uniwue.mk.athen/bundles/de.uniwue.mk.kall.athen.goldstandardAnalyzer/src/de/uniwue/mk/kall/athen/goldstandardAnalyzer/GoldstandardAnalyzer.java
...kall/athen/goldstandardAnalyzer/GoldstandardAnalyzer.java
+14
-4
No files found.
de.uniwue.mk.athen/bundles/de.uniwue.mk.kall.athen.goldstandardAnalyzer/src/de/uniwue/mk/kall/athen/goldstandardAnalyzer/GoldstandardAnalyzer.java
View file @
f8bbfab7
...
...
@@ -296,12 +296,17 @@ public class GoldstandardAnalyzer extends AEditorSubordinateViewPart {
editor
.
removeAnnotations
(
toDelete
);
for
(
AnnotationFS
anno
:
toDelete
)
{
editor
.
getCas
().
removeFsFromIndexes
(
anno
);
}
//
for (AnnotationFS anno : toDelete) {
//
editor.getCas().removeFsFromIndexes(anno);
//
}
}
public
void
deleteAnnotations
()
{
//reset maps
this
.
fnMap
.
clear
();
this
.
fpMap
.
clear
();
this
.
tpMap
.
clear
();
List
<
AnnotationFS
>
annoList
=
new
ArrayList
<>();
AnnotationIndex
<
AnnotationFS
>
annotationIndex
=
editor
.
getCas
().
getAnnotationIndex
(
tpType
);
...
...
@@ -321,7 +326,11 @@ public class GoldstandardAnalyzer extends AEditorSubordinateViewPart {
while
(
iterator2
.
hasNext
())
{
annoList
.
add
((
AnnotationFS
)
iterator2
.
next
());
}
deleteAnnotations
(
annoList
.
toArray
(
new
AnnotationFS
[
0
]));
for
(
AnnotationFS
a
:
annoList
)
{
editor
.
getCas
().
removeFsFromIndexes
(
a
);
}
editor
.
updateWidget
();
// deleteAnnotations(annoList.toArray(new AnnotationFS[0]));
}
public
void
compareTypes
()
{
...
...
@@ -401,6 +410,7 @@ public class GoldstandardAnalyzer extends AEditorSubordinateViewPart {
}
public
void
createMap
()
{
this
.
m
=
new
HashMap
<>();
m
.
putAll
(
tpMap
);
m
.
putAll
(
fpMap
);
m
.
putAll
(
fnMap
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment