Commit f7351944 authored by tu's avatar tu

automatic assignment of speaker to the STWR- and frame-table

parent e7c5483d
Pipeline #12417 passed with stage
in 5 minutes
......@@ -1080,10 +1080,10 @@ public class RedeWiedergabeView extends AEditorSubordinateViewPart {
//JOptionPane.showMessageDialog(jFrame, "The speaker already has the ID " + selected.getFeatureValueAsString(frameIDFeat) + ".", "Attention", JOptionPane.WARNING_MESSAGE);
}else if (anno.getFeatureValueAsString(speakerIDFeat).equals("0")) {
concatenatedId = selected.getFeatureValueAsString(frameIDFeat);
updateAnnotation(anno, speakerIDFeat, concatenatedId, true);
updateAnnotation(anno, speakerIDFeat, concatenatedId, true);
}else {
concatenatedId = anno.getFeatureValueAsString(speakerIDFeat) + " " + selected.getFeatureValueAsString(frameIDFeat);
updateAnnotation(anno, speakerIDFeat, concatenatedId, true);
updateAnnotation(anno, speakerIDFeat, concatenatedId, true);
}
}
......
......@@ -202,7 +202,8 @@ public class RwFrameTableComposite extends Composite{
{
IStructuredSelection sel = (IStructuredSelection) frameViewer.getSelection();
AnnotationFS selected = (AnnotationFS) sel.getFirstElement();
part.createSpeakerOutsideFrame(selected);
part.createSpeakerOutsideFrame(selected);
refreshTable();
}
// small utility method
......
......@@ -273,7 +273,8 @@ public class RwStwrTableComposite extends Composite{
{
IStructuredSelection sel = (IStructuredSelection) stwrViewer.getSelection();
AnnotationFS selected = (AnnotationFS) sel.getFirstElement();
part.createSpeakerOutsideStwr(selected);
part.createSpeakerOutsideStwr(selected);
refreshTable();
}
// small utility method
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment