addInputField(selector.getTargetField());
return selector;
}
private EntitySelectionControl createTransformationSelector() {
final EntitySelectionControl selector = new EntitySelectionControl(operationPage, EntityType.Transformation,
null, PackageResources.Transformation.LABEL, true);
selector.setToolTip(PackageResources.Transformation.TOOLTIP);
selector.asSelectionSource().addSelectionListener(new SelectionListener() {
@Override
public void selectionChanged(SelectionChangedEvent evt) {
model.setTransformation((Transformation) selector.getSelectedEntity());
}
});
model.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
String name = evt.getPropertyName();
if (name.equals(TransformationChainModel.TRANSFORMATION)) {
selector.setSelectedEntity((Transformation) evt.getNewValue());
} else if (name.equals(TransformationChainModel.TRANSFORMATION_FILTER)) {
selector.setNewFilter((EntityFilter) evt.getNewValue());
}
}
});
addInputField(selector.asInputFieldForChangeDetection());
return selector;
}