use of org.eclipse.emf.eef.runtime.ui.providers.EMFListContentProvider in project InformationSystem by ObeoNetwork.
the class BindingReferencePropertiesEditionPartForm method createRightEMFComboViewer.
protected Composite createRightEMFComboViewer(FormToolkit widgetFactory, Composite parent) {
createDescription(parent, EnvironmentViewsRepository.BindingReference.Properties.right, EnvironmentMessages.BindingReferencePropertiesEditionPart_RightLabel);
right = new EMFComboViewer(parent);
GridData rightData = new GridData(GridData.FILL_HORIZONTAL);
right.getCombo().setLayoutData(rightData);
right.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
right.addSelectionChangedListener(new ISelectionChangedListener() {
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
*/
public void selectionChanged(SelectionChangedEvent event) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(BindingReferencePropertiesEditionPartForm.this, EnvironmentViewsRepository.BindingReference.Properties.right, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getRight()));
}
});
right.setContentProvider(new EMFListContentProvider());
EditingUtils.setID(right.getCombo(), EnvironmentViewsRepository.BindingReference.Properties.right);
EditingUtils.setEEFtype(right.getCombo(), "eef::Combo");
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.BindingReference.Properties.right, EnvironmentViewsRepository.FORM_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.providers.EMFListContentProvider in project InformationSystem by ObeoNetwork.
the class ColumnPropertiesEditionPartImpl method createTypeEMFComboViewer.
protected Composite createTypeEMFComboViewer(Composite parent) {
createDescription(parent, DatabaseViewsRepository.Column.Properties.type, DatabaseMessages.ColumnPropertiesEditionPart_TypeLabel);
type = new EMFComboViewer(parent);
GridData typeData = new GridData(GridData.FILL_HORIZONTAL);
type.getCombo().setLayoutData(typeData);
type.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
type.addSelectionChangedListener(new ISelectionChangedListener() {
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
*/
public void selectionChanged(SelectionChangedEvent event) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ColumnPropertiesEditionPartImpl.this, DatabaseViewsRepository.Column.Properties.type, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getType()));
}
});
type.setContentProvider(new EMFListContentProvider());
EditingUtils.setID(type.getCombo(), DatabaseViewsRepository.Column.Properties.type);
// $NON-NLS-1$
EditingUtils.setEEFtype(type.getCombo(), "eef::Combo");
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(DatabaseViewsRepository.Column.Properties.type, DatabaseViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.providers.EMFListContentProvider in project InformationSystem by ObeoNetwork.
the class BindingInfoPropertiesEditionPartForm method createRightEMFComboViewer.
protected Composite createRightEMFComboViewer(FormToolkit widgetFactory, Composite parent) {
createDescription(parent, EnvironmentViewsRepository.BindingInfo.Properties.right, EnvironmentMessages.BindingInfoPropertiesEditionPart_RightLabel);
right = new EMFComboViewer(parent);
GridData rightData = new GridData(GridData.FILL_HORIZONTAL);
right.getCombo().setLayoutData(rightData);
right.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
right.addSelectionChangedListener(new ISelectionChangedListener() {
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
*/
public void selectionChanged(SelectionChangedEvent event) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(BindingInfoPropertiesEditionPartForm.this, EnvironmentViewsRepository.BindingInfo.Properties.right, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getRight()));
}
});
right.setContentProvider(new EMFListContentProvider());
EditingUtils.setID(right.getCombo(), EnvironmentViewsRepository.BindingInfo.Properties.right);
EditingUtils.setEEFtype(right.getCombo(), "eef::Combo");
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.BindingInfo.Properties.right, EnvironmentViewsRepository.FORM_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.providers.EMFListContentProvider in project InformationSystem by ObeoNetwork.
the class BindingInfoPropertiesEditionPartImpl method createLeftEMFComboViewer.
protected Composite createLeftEMFComboViewer(Composite parent) {
createDescription(parent, EnvironmentViewsRepository.BindingInfo.Properties.left, EnvironmentMessages.BindingInfoPropertiesEditionPart_LeftLabel);
left = new EMFComboViewer(parent);
GridData leftData = new GridData(GridData.FILL_HORIZONTAL);
left.getCombo().setLayoutData(leftData);
left.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
left.addSelectionChangedListener(new ISelectionChangedListener() {
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
*/
public void selectionChanged(SelectionChangedEvent event) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(BindingInfoPropertiesEditionPartImpl.this, EnvironmentViewsRepository.BindingInfo.Properties.left, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getLeft()));
}
});
left.setContentProvider(new EMFListContentProvider());
EditingUtils.setID(left.getCombo(), EnvironmentViewsRepository.BindingInfo.Properties.left);
// $NON-NLS-1$
EditingUtils.setEEFtype(left.getCombo(), "eef::Combo");
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.BindingInfo.Properties.left, EnvironmentViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.providers.EMFListContentProvider in project InformationSystem by ObeoNetwork.
the class BindingInfoPropertiesEditionPartImpl method createRightEMFComboViewer.
protected Composite createRightEMFComboViewer(Composite parent) {
createDescription(parent, EnvironmentViewsRepository.BindingInfo.Properties.right, EnvironmentMessages.BindingInfoPropertiesEditionPart_RightLabel);
right = new EMFComboViewer(parent);
GridData rightData = new GridData(GridData.FILL_HORIZONTAL);
right.getCombo().setLayoutData(rightData);
right.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
right.addSelectionChangedListener(new ISelectionChangedListener() {
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
*/
public void selectionChanged(SelectionChangedEvent event) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(BindingInfoPropertiesEditionPartImpl.this, EnvironmentViewsRepository.BindingInfo.Properties.right, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getRight()));
}
});
right.setContentProvider(new EMFListContentProvider());
EditingUtils.setID(right.getCombo(), EnvironmentViewsRepository.BindingInfo.Properties.right);
// $NON-NLS-1$
EditingUtils.setEEFtype(right.getCombo(), "eef::Combo");
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.BindingInfo.Properties.right, EnvironmentViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
Aggregations