Beispiel #1
0
  @Override
  public void textChange(TextChangeEvent event) {
    setDirty(true);
    if (event.getComponent() != translated || currentItem == null) return;

    de.jutzig.jabylon.properties.Property copy = EcoreUtil.copy(currentItem.getTargetProperty());
    copy.setValue(event.getText());
    applyValidation(copy);
  }
Beispiel #2
0
  @Override
  public void valueChange(ValueChangeEvent event) {
    Object value = event.getProperty().getValue();
    if (value == null) return;
    Item theItem = propertyPairContainer.getItem(value);
    currentItem = (PropertyPairItem) theItem;
    // a clone, so a change event won't mess the table selection
    PropertyPairItem clone =
        new PropertyPairItem(currentItem.getSourceProperty(), currentItem.getTargetProperty());
    propertyToolArea.selectionChanged(clone, reviews.get((String) clone.getKey()), this);

    keyLabel.setValue(clone.getKey());
    translated.setPropertyDataSource(clone.getTarget());
    orignal.setPropertyDataSource(clone.getSource());

    translatedComment.setPropertyDataSource(clone.getTargetComment());
    orignalComment.setPropertyDataSource(clone.getSourceComment());

    applyValidation(clone.getTargetProperty());
  }