}
private SourceAndTargetCombos createSourceAndTargetSelector() {
final SourceAndTargetCombos selector = new SourceAndTargetCombos(operationPage,
TransformationOperationType.TYPE, true);
selector.addSourceSelectionListener(new SelectionListener() {
@Override
public void selectionChanged(SelectionChangedEvent evt) {
model.setSource(selector.getSelectedSource());
}
});
model.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
String name = evt.getPropertyName();
if (name.equals(TransformationChainModel.SOURCE)) {
selector.setSelectedSource((Source) evt.getNewValue());
} else if (name.equals(TransformationChainModel.TARGET)) {
selector.setSelectedTarget((Target) evt.getNewValue());
} else if (name.equals(TransformationChainModel.TARGET_FILTER)) {
selector.setTargetFilter((EntityFilter) evt.getNewValue());
}
}
});
selector.addTargetSelectionListener(new SelectionListener() {
@Override
public void selectionChanged(SelectionChangedEvent evt) {
model.setTarget(selector.getSelectedTarget());
}