use of org.eclipse.emf.eef.runtime.ui.widgets.FlatReferencesTable in project InformationSystem by ObeoNetwork.
the class AdvancedPropertiesEditionPartForm method createReferencedObjectFlatReferencesTable.
/**
* @param parent
*/
protected Composite createReferencedObjectFlatReferencesTable(FormToolkit widgetFactory, Composite parent) {
createDescription(parent, RequirementViewsRepository.Advanced.referencedObject, RequirementMessages.AdvancedPropertiesEditionPart_ReferencedObjectLabel);
referencedObject = new FlatReferencesTable(parent);
referencedObject.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
referencedObject.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
if (event.getSelection() instanceof StructuredSelection)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(AdvancedPropertiesEditionPartForm.this, RequirementViewsRepository.Advanced.referencedObject, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, ((StructuredSelection) event.getSelection()).toList()));
}
});
GridData referencedObjectData = new GridData(GridData.FILL_HORIZONTAL);
referencedObject.setLayoutData(referencedObjectData);
referencedObject.setID(RequirementViewsRepository.Advanced.referencedObject);
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(RequirementViewsRepository.Advanced.referencedObject, RequirementViewsRepository.FORM_KIND), null);
// End of user code
return parent;
}
Aggregations