use of org.eclipse.emf.eef.runtime.ui.widgets.EMFModelViewerDialog in project InformationSystem by ObeoNetwork.
the class PrimaryKeyPropertiesEditionPartImpl method addColumns.
/**
*/
protected void addColumns() {
EMFModelViewerDialog dialog = new EMFModelViewerDialog(new AdapterFactoryLabelProvider(adapterFactory), columns.getInput(), columnsFilters, columnsBusinessFilters, false, true) {
public void process(IStructuredSelection selection) {
for (Iterator iter = selection.iterator(); iter.hasNext(); ) {
EObject elem = (EObject) iter.next();
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(PrimaryKeyPropertiesEditionPartImpl.this, DatabaseViewsRepository.PrimaryKey.Properties.columns, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
}
};
dialog.open();
// Start of user code for addColumns
// End of user code
columns.refresh();
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EMFModelViewerDialog in project InformationSystem by ObeoNetwork.
the class PrimaryKeyPropertiesEditionPartForm method addColumns.
/**
*/
protected void addColumns() {
EMFModelViewerDialog dialog = new EMFModelViewerDialog(new AdapterFactoryLabelProvider(adapterFactory), columns.getInput(), columnsFilters, columnsBusinessFilters, false, true) {
public void process(IStructuredSelection selection) {
for (Iterator iter = selection.iterator(); iter.hasNext(); ) {
EObject elem = (EObject) iter.next();
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(PrimaryKeyPropertiesEditionPartForm.this, DatabaseViewsRepository.PrimaryKey.Properties.columns, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
}
};
// Start of user code for addColumns
// End of user code
dialog.open();
columns.refresh();
}
Aggregations