use of org.eclipse.emf.eef.runtime.ui.widgets.EObjectFlatComboViewer in project InformationSystem by ObeoNetwork.
the class UserDefinedTypeRefPropertiesEditionPartForm 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, TypeslibraryViewsRepository.UserDefinedTypeRef.Properties.type, TypeslibraryMessages.UserDefinedTypeRefPropertiesEditionPart_TypeLabel);
type = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(TypeslibraryViewsRepository.UserDefinedTypeRef.Properties.type, TypeslibraryViewsRepository.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(UserDefinedTypeRefPropertiesEditionPartForm.this, TypeslibraryViewsRepository.UserDefinedTypeRef.Properties.type, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getType()));
}
});
type.setID(TypeslibraryViewsRepository.UserDefinedTypeRef.Properties.type);
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(TypeslibraryViewsRepository.UserDefinedTypeRef.Properties.type, TypeslibraryViewsRepository.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 TransitionPropertiesEditionPartImpl method createTargetFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createTargetFlatComboViewer(Composite parent) {
createDescription(parent, GraalViewsRepository.Transition.Properties.target, GraalMessages.TransitionPropertiesEditionPart_TargetLabel);
target = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(GraalViewsRepository.Transition.Properties.target, GraalViewsRepository.SWT_KIND));
target.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
target.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(TransitionPropertiesEditionPartImpl.this, GraalViewsRepository.Transition.Properties.target, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getTarget()));
}
});
GridData targetData = new GridData(GridData.FILL_HORIZONTAL);
target.setLayoutData(targetData);
target.setID(GraalViewsRepository.Transition.Properties.target);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(GraalViewsRepository.Transition.Properties.target, GraalViewsRepository.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 TransitionPropertiesEditionPartImpl method createSourceFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createSourceFlatComboViewer(Composite parent) {
createDescription(parent, GraalViewsRepository.Transition.Properties.source, GraalMessages.TransitionPropertiesEditionPart_SourceLabel);
source = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(GraalViewsRepository.Transition.Properties.source, GraalViewsRepository.SWT_KIND));
source.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
source.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(TransitionPropertiesEditionPartImpl.this, GraalViewsRepository.Transition.Properties.source, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getSource()));
}
});
GridData sourceData = new GridData(GridData.FILL_HORIZONTAL);
source.setLayoutData(sourceData);
source.setID(GraalViewsRepository.Transition.Properties.source);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(GraalViewsRepository.Transition.Properties.source, GraalViewsRepository.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 ViewContainerPropertiesEditionPartImpl method createWidgetFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createWidgetFlatComboViewer(Composite parent) {
createDescription(parent, ViewViewsRepository.ViewContainer.Properties.widget, ViewMessages.ViewContainerPropertiesEditionPart_WidgetLabel);
widget = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(ViewViewsRepository.ViewContainer.Properties.widget, ViewViewsRepository.SWT_KIND));
widget.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
widget.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerPropertiesEditionPartImpl.this, ViewViewsRepository.ViewContainer.Properties.widget, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getWidget()));
}
});
GridData widgetData = new GridData(GridData.FILL_HORIZONTAL);
widget.setLayoutData(widgetData);
widget.setID(ViewViewsRepository.ViewContainer.Properties.widget);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(ViewViewsRepository.ViewContainer.Properties.widget, ViewViewsRepository.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 ViewContainerReferencePropertiesEditionPartImpl method createViewContainerFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createViewContainerFlatComboViewer(Composite parent) {
createDescription(parent, ViewViewsRepository.ViewContainerReference.Properties.viewContainer, ViewMessages.ViewContainerReferencePropertiesEditionPart_ViewContainerLabel);
viewContainer = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(ViewViewsRepository.ViewContainerReference.Properties.viewContainer, ViewViewsRepository.SWT_KIND));
viewContainer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
viewContainer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ViewContainerReferencePropertiesEditionPartImpl.this, ViewViewsRepository.ViewContainerReference.Properties.viewContainer, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getViewContainer()));
}
});
GridData viewContainerData = new GridData(GridData.FILL_HORIZONTAL);
viewContainer.setLayoutData(viewContainerData);
viewContainer.setID(ViewViewsRepository.ViewContainerReference.Properties.viewContainer);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(ViewViewsRepository.ViewContainerReference.Properties.viewContainer, ViewViewsRepository.SWT_KIND), null);
// End of user code
return parent;
}
Aggregations