예제 #1
0
  public void updateInformation() {

    currentTerminoConcept =
        ControlerFactoryImpl.getTerminoOntoControler().getCurrentTerminoConcept();

    if (currentTerminoConcept != null) {
      terminoConceptText.setText(currentTerminoConcept.getLabel());
      termsTableViewer.setInput(UtilTools.setToList(currentTerminoConcept.getMappedTerms()));
      termsOtherLgTableViewer.setInput(getTCTranslationAnnotations(currentTerminoConcept));
      sentencesWidget.setInput(getSentences());
    }
  }
예제 #2
0
  public void updateContent(ITypeRelationTc rtcType) {
    List<ITypeRelationTermino> linkedRTTypes = new ArrayList<ITypeRelationTermino>();
    String rtcTypeName = ""; // $NON-NLS-1$

    this.currentRTCType = rtcType;

    if (currentRTCType != null) {

      rtcTypeName = currentRTCType.getName();

      linkedRTTypes = UtilTools.setToList(currentRTCType.getMappedTermRelationTypes());
    }

    this.currentTerminoRelationTypeText.setText(rtcTypeName);

    this.rtTypeListViewer.setInput(linkedRTTypes);

    this.newRTTypeText.setText(""); // $NON-NLS-1$
  }