use of org.eclipse.emf.eef.runtime.ui.widgets.EObjectFlatComboViewer in project InformationSystem by ObeoNetwork.
the class ReferencePropertiesEditionPartImpl method createOppositeOfFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createOppositeOfFlatComboViewer(Composite parent) {
createDescription(parent, EnvironmentViewsRepository.Reference.Properties.oppositeOf, EnvironmentMessages.ReferencePropertiesEditionPart_OppositeOfLabel);
oppositeOf = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(EnvironmentViewsRepository.Reference.Properties.oppositeOf, EnvironmentViewsRepository.SWT_KIND));
oppositeOf.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
oppositeOf.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ReferencePropertiesEditionPartImpl.this, EnvironmentViewsRepository.Reference.Properties.oppositeOf, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getOppositeOf()));
}
});
GridData oppositeOfData = new GridData(GridData.FILL_HORIZONTAL);
oppositeOf.setLayoutData(oppositeOfData);
oppositeOf.setID(EnvironmentViewsRepository.Reference.Properties.oppositeOf);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.Reference.Properties.oppositeOf, EnvironmentViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EObjectFlatComboViewer in project InformationSystem by ObeoNetwork.
the class ForeignKeyElementPropertiesEditionPartImpl method createPKColumnFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createPKColumnFlatComboViewer(Composite parent) {
createDescription(parent, DatabaseViewsRepository.ForeignKeyElement.Properties.pKColumn, DatabaseMessages.ForeignKeyElementPropertiesEditionPart_PKColumnLabel);
pKColumn = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(DatabaseViewsRepository.ForeignKeyElement.Properties.pKColumn, DatabaseViewsRepository.SWT_KIND));
pKColumn.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
pKColumn.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ForeignKeyElementPropertiesEditionPartImpl.this, DatabaseViewsRepository.ForeignKeyElement.Properties.pKColumn, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getPKColumn()));
}
});
GridData pKColumnData = new GridData(GridData.FILL_HORIZONTAL);
pKColumn.setLayoutData(pKColumnData);
pKColumn.setID(DatabaseViewsRepository.ForeignKeyElement.Properties.pKColumn);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(DatabaseViewsRepository.ForeignKeyElement.Properties.pKColumn, DatabaseViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EObjectFlatComboViewer in project InformationSystem by ObeoNetwork.
the class ForeignKeyPropertiesEditionPartImpl method createTargetFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createTargetFlatComboViewer(Composite parent) {
createDescription(parent, DatabaseViewsRepository.ForeignKey.Properties.target, DatabaseMessages.ForeignKeyPropertiesEditionPart_TargetLabel);
target = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(DatabaseViewsRepository.ForeignKey.Properties.target, DatabaseViewsRepository.SWT_KIND));
target.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
target.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ForeignKeyPropertiesEditionPartImpl.this, DatabaseViewsRepository.ForeignKey.Properties.target, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getTarget()));
}
});
GridData targetData = new GridData(GridData.FILL_HORIZONTAL);
target.setLayoutData(targetData);
target.setID(DatabaseViewsRepository.ForeignKey.Properties.target);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(DatabaseViewsRepository.ForeignKey.Properties.target, DatabaseViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EObjectFlatComboViewer in project InformationSystem by ObeoNetwork.
the class ViewEventPropertiesEditionPartForm method createTypeFlatComboViewer.
/**
* @param parent the parent composite
* @param widgetFactory factory to use to instanciante widget of the form
*/
protected Composite createTypeFlatComboViewer(Composite parent, FormToolkit widgetFactory) {
createDescription(parent, ViewViewsRepository.ViewEvent.Properties.type, ViewMessages.ViewEventPropertiesEditionPart_TypeLabel);
type = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(ViewViewsRepository.ViewEvent.Properties.type, ViewViewsRepository.FORM_KIND));
widgetFactory.adapt(type);
type.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
GridData typeData = new GridData(GridData.FILL_HORIZONTAL);
type.setLayoutData(typeData);
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(ViewEventPropertiesEditionPartForm.this, ViewViewsRepository.ViewEvent.Properties.type, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getType()));
}
});
type.setID(ViewViewsRepository.ViewEvent.Properties.type);
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(ViewViewsRepository.ViewEvent.Properties.type, ViewViewsRepository.FORM_KIND), null);
// End of user code
return parent;
}
use of org.eclipse.emf.eef.runtime.ui.widgets.EObjectFlatComboViewer in project InformationSystem by ObeoNetwork.
the class ViewElementPropertiesEditionPartImpl method createWidgetFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createWidgetFlatComboViewer(Composite parent) {
createDescription(parent, ViewViewsRepository.ViewElement.Properties.widget, ViewMessages.ViewElementPropertiesEditionPart_WidgetLabel);
widget = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(ViewViewsRepository.ViewElement.Properties.widget, ViewViewsRepository.SWT_KIND));
widget.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
widget.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewElementPropertiesEditionPartImpl.this, ViewViewsRepository.ViewElement.Properties.widget, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getWidget()));
}
});
GridData widgetData = new GridData(GridData.FILL_HORIZONTAL);
widget.setLayoutData(widgetData);
widget.setID(ViewViewsRepository.ViewElement.Properties.widget);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(ViewViewsRepository.ViewElement.Properties.widget, ViewViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
Aggregations