use of org.eclipse.emf.eef.runtime.ui.widgets.EMFComboViewer in project InformationSystem by ObeoNetwork.
the class BindingElementPropertiesEditionPartImpl method createBoundElementEMFComboViewer.
protected Composite createBoundElementEMFComboViewer(Composite parent) {
createDescription(parent, EnvironmentViewsRepository.BindingElement.Properties.boundElement, EnvironmentMessages.BindingElementPropertiesEditionPart_BoundElementLabel);
boundElement = new EMFComboViewer(parent);
GridData boundElementData = new GridData(GridData.FILL_HORIZONTAL);
boundElement.getCombo().setLayoutData(boundElementData);
boundElement.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
boundElement.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(BindingElementPropertiesEditionPartImpl.this, EnvironmentViewsRepository.BindingElement.Properties.boundElement, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getBoundElement()));
}
});
boundElement.setContentProvider(new EMFListContentProvider());
EditingUtils.setID(boundElement.getCombo(), EnvironmentViewsRepository.BindingElement.Properties.boundElement);
// $NON-NLS-1$
EditingUtils.setEEFtype(boundElement.getCombo(), "eef::Combo");
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.BindingElement.Properties.boundElement, EnvironmentViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EMFComboViewer in project InformationSystem by ObeoNetwork.
the class BindingReferencePropertiesEditionPartImpl method createLeftEMFComboViewer.
protected Composite createLeftEMFComboViewer(Composite parent) {
createDescription(parent, EnvironmentViewsRepository.BindingReference.Properties.left, EnvironmentMessages.BindingReferencePropertiesEditionPart_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(BindingReferencePropertiesEditionPartImpl.this, EnvironmentViewsRepository.BindingReference.Properties.left, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getLeft()));
}
});
left.setContentProvider(new EMFListContentProvider());
EditingUtils.setID(left.getCombo(), EnvironmentViewsRepository.BindingReference.Properties.left);
// $NON-NLS-1$
EditingUtils.setEEFtype(left.getCombo(), "eef::Combo");
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.BindingReference.Properties.left, EnvironmentViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EMFComboViewer in project InformationSystem by ObeoNetwork.
the class OppositePropertiesEditionPartForm method createMultiplicityEMFComboViewer.
protected Composite createMultiplicityEMFComboViewer(FormToolkit widgetFactory, Composite parent) {
createDescription(parent, EnvironmentViewsRepository.Opposite.Properties.multiplicity, EnvironmentMessages.OppositePropertiesEditionPart_MultiplicityLabel);
multiplicity = new EMFComboViewer(parent);
multiplicity.setContentProvider(new ArrayContentProvider());
multiplicity.setLabelProvider(new AdapterFactoryLabelProvider(EEFRuntimePlugin.getDefault().getAdapterFactory()));
GridData multiplicityData = new GridData(GridData.FILL_HORIZONTAL);
multiplicity.getCombo().setLayoutData(multiplicityData);
multiplicity.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(OppositePropertiesEditionPartForm.this, EnvironmentViewsRepository.Opposite.Properties.multiplicity, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getMultiplicity()));
}
});
multiplicity.setID(EnvironmentViewsRepository.Opposite.Properties.multiplicity);
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.Opposite.Properties.multiplicity, EnvironmentViewsRepository.FORM_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EMFComboViewer in project InformationSystem by ObeoNetwork.
the class OppositePropertiesEditionPartImpl method createMultiplicityEMFComboViewer.
protected Composite createMultiplicityEMFComboViewer(Composite parent) {
createDescription(parent, EnvironmentViewsRepository.Opposite.Properties.multiplicity, EnvironmentMessages.OppositePropertiesEditionPart_MultiplicityLabel);
multiplicity = new EMFComboViewer(parent);
multiplicity.setContentProvider(new ArrayContentProvider());
multiplicity.setLabelProvider(new AdapterFactoryLabelProvider(EEFRuntimePlugin.getDefault().getAdapterFactory()));
GridData multiplicityData = new GridData(GridData.FILL_HORIZONTAL);
multiplicity.getCombo().setLayoutData(multiplicityData);
multiplicity.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(OppositePropertiesEditionPartImpl.this, EnvironmentViewsRepository.Opposite.Properties.multiplicity, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getMultiplicity()));
}
});
multiplicity.setID(EnvironmentViewsRepository.Opposite.Properties.multiplicity);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.Opposite.Properties.multiplicity, EnvironmentViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EMFComboViewer in project InformationSystem by ObeoNetwork.
the class AttributePropertiesEditionPartForm method createTypeEMFComboViewer.
protected Composite createTypeEMFComboViewer(FormToolkit widgetFactory, Composite parent) {
createDescription(parent, EnvironmentViewsRepository.Attribute.Properties.type, EnvironmentMessages.AttributePropertiesEditionPart_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(AttributePropertiesEditionPartForm.this, EnvironmentViewsRepository.Attribute.Properties.type, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getType()));
}
});
type.setContentProvider(new EMFListContentProvider());
EditingUtils.setID(type.getCombo(), EnvironmentViewsRepository.Attribute.Properties.type);
EditingUtils.setEEFtype(type.getCombo(), "eef::Combo");
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.Attribute.Properties.type, EnvironmentViewsRepository.FORM_KIND), null);
// End of user code
return parent;
}
Aggregations