// sourceEntityPickerData.horizontalSpan = 2;
sourceEntityPickerData.verticalIndent = 15;
sourceEntityPicker.setLayoutData(sourceEntityPickerData);
sourceEntityPicker.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
EOEntity entity = (EOEntity) ((IStructuredSelection) event.getSelection()).getFirstElement();
setSourceEntity(entity);
}
});
EntityPicker destinationEntityPicker = new EntityPicker(relationshipDialogArea, SWT.NONE, false);
destinationEntityPicker.setModelGroup(_modelGroup);
destinationEntityPicker.setEntity(_destinationEntity);
if (_destinationEntity == null && _sourceEntity != null) {
destinationEntityPicker.setModel(_sourceEntity.getModel());
}
GridData destinationEntityPickerData = new GridData(GridData.FILL_HORIZONTAL);
// destinationEntityPickerData.horizontalSpan = 2;
destinationEntityPickerData.verticalIndent = 15;
destinationEntityPicker.setLayoutData(destinationEntityPickerData);
destinationEntityPicker.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
EOEntity entity = (EOEntity) ((IStructuredSelection) event.getSelection()).getFirstElement();
setDestinationEntity(entity);
}
});
}