Label parentEntityLabel = new Label(subclassDialogArea, SWT.NONE);
parentEntityLabel.setText(Messages.getString("SubclassEntityDialog.parentEntityLabel"));
_parentEntityViewer = new ComboViewer(subclassDialogArea);
_parentEntityViewer.setContentProvider(new EOEntityListContentProvider(false, false, false));
_parentEntityViewer.setLabelProvider(new EOEntityLabelProvider());
_parentEntityViewer.setSorter(new ViewerSorter());
_parentEntityViewer.setInput(_sourceModel);
_parentEntityViewer.getCombo().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
_parentEntityViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent _event) {
SubclassEntityDialog.this._updateSubclassFromUI();
}
});
if (_parentEntity != null) {
_parentEntityViewer.setSelection(new StructuredSelection(_parentEntity));
}
Label inheritanceTypeLabel = new Label(subclassDialogArea, SWT.NONE);
inheritanceTypeLabel.setText(Messages.getString("SubclassEntityDialog.inheritanceTypeLabel"));
_inheritanceTypeViewer = new ComboViewer(subclassDialogArea);
_inheritanceTypeViewer.setLabelProvider(new InheritanceTypeLabelProvider());
_inheritanceTypeViewer.setContentProvider(new InheritanceTypeContentProvider());
_inheritanceTypeViewer.setSorter(new ViewerSorter());
_inheritanceTypeViewer.setInput(InheritanceType.INHERITANCE_TYPES);
_inheritanceTypeViewer.getCombo().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
_inheritanceTypeViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent _event) {
SubclassEntityDialog.this._updateSubclassFromUI();
}
});
_inheritanceTypeViewer.setSelection(new StructuredSelection(InheritanceType.SINGLE_TABLE));
Label destinationModelLabel = new Label(subclassDialogArea, SWT.NONE);
destinationModelLabel.setText(Messages.getString("SubclassEntityDialog.destinationModelLabel"));
_destinationModelViewer = new ComboViewer(subclassDialogArea);
_destinationModelViewer.setContentProvider(new EOModelListContentProvider());
_destinationModelViewer.setLabelProvider(new EOModelLabelProvider());
_destinationModelViewer.setSorter(new ViewerSorter());
_destinationModelViewer.setInput(_destinationModel);
_destinationModelViewer.getCombo().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
_destinationModelViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent _event) {
SubclassEntityDialog.this._updateSubclassFromUI();