/**
* Executes the merge action
*/
@Override
public void run() {
AnnotationSelection annotations = new AnnotationSelection(getStructuredSelection());
CAS documentCAS = mDocument.getCAS();
AnnotationFS mergedAnnotation = documentCAS.createAnnotation(annotations.getFirst().getType(),
annotations.getFirst().getBegin(), annotations.getLast().getEnd());
mDocument.removeFeatureStructures(annotations.toList());
mDocument.addFeatureStructure(mergedAnnotation);
}