use of org.eclipse.emf.eef.runtime.ui.widgets.EObjectFlatComboViewer in project InformationSystem by ObeoNetwork.
the class TransitionPropertiesEditionPartImpl method createToFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createToFlatComboViewer(Composite parent) {
createDescription(parent, FlowViewsRepository.Transition.Properties.to, FlowMessages.TransitionPropertiesEditionPart_ToLabel);
to = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(FlowViewsRepository.Transition.Properties.to, FlowViewsRepository.SWT_KIND));
to.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
to.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(TransitionPropertiesEditionPartImpl.this, FlowViewsRepository.Transition.Properties.to, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getTo()));
}
});
GridData toData = new GridData(GridData.FILL_HORIZONTAL);
to.setLayoutData(toData);
to.setID(FlowViewsRepository.Transition.Properties.to);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(FlowViewsRepository.Transition.Properties.to, FlowViewsRepository.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 InteractionUsePropertiesEditionPartForm method createInteractionFlatComboViewer.
/**
* @param parent the parent composite
* @param widgetFactory factory to use to instanciante widget of the form
*/
protected Composite createInteractionFlatComboViewer(Composite parent, FormToolkit widgetFactory) {
createDescription(parent, InteractionViewsRepository.InteractionUse.Properties.interaction_, InteractionMessages.InteractionUsePropertiesEditionPart_InteractionLabel);
interaction = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(InteractionViewsRepository.InteractionUse.Properties.interaction_, InteractionViewsRepository.FORM_KIND));
widgetFactory.adapt(interaction);
interaction.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
GridData interactionData = new GridData(GridData.FILL_HORIZONTAL);
interaction.setLayoutData(interactionData);
interaction.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(InteractionUsePropertiesEditionPartForm.this, InteractionViewsRepository.InteractionUse.Properties.interaction_, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getInteraction()));
}
});
interaction.setID(InteractionViewsRepository.InteractionUse.Properties.interaction_);
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(InteractionViewsRepository.InteractionUse.Properties.interaction_, InteractionViewsRepository.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 ParticipantPropertiesEditionPartForm 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, InteractionViewsRepository.Participant.Properties.type, InteractionMessages.ParticipantPropertiesEditionPart_TypeLabel);
type = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(InteractionViewsRepository.Participant.Properties.type, InteractionViewsRepository.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(ParticipantPropertiesEditionPartForm.this, InteractionViewsRepository.Participant.Properties.type, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getType()));
}
});
type.setID(InteractionViewsRepository.Participant.Properties.type);
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(InteractionViewsRepository.Participant.Properties.type, InteractionViewsRepository.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 InteractionUsePropertiesEditionPartImpl method createInteractionFlatComboViewer.
/**
* @param parent the parent composite
*/
protected Composite createInteractionFlatComboViewer(Composite parent) {
createDescription(parent, InteractionViewsRepository.InteractionUse.Properties.interaction_, InteractionMessages.InteractionUsePropertiesEditionPart_InteractionLabel);
interaction = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(InteractionViewsRepository.InteractionUse.Properties.interaction_, InteractionViewsRepository.SWT_KIND));
interaction.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
interaction.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(InteractionUsePropertiesEditionPartImpl.this, InteractionViewsRepository.InteractionUse.Properties.interaction_, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, getInteraction()));
}
});
GridData interactionData = new GridData(GridData.FILL_HORIZONTAL);
interaction.setLayoutData(interactionData);
interaction.setID(InteractionViewsRepository.InteractionUse.Properties.interaction_);
// $NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(InteractionViewsRepository.InteractionUse.Properties.interaction_, InteractionViewsRepository.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 ReferencePropertiesEditionPartForm method createOppositeOfFlatComboViewer.
/**
* @param parent the parent composite
* @param widgetFactory factory to use to instanciante widget of the form
*/
protected Composite createOppositeOfFlatComboViewer(Composite parent, FormToolkit widgetFactory) {
createDescription(parent, EnvironmentViewsRepository.Reference.Properties.oppositeOf, EnvironmentMessages.ReferencePropertiesEditionPart_OppositeOfLabel);
oppositeOf = new EObjectFlatComboViewer(parent, !propertiesEditionComponent.isRequired(EnvironmentViewsRepository.Reference.Properties.oppositeOf, EnvironmentViewsRepository.FORM_KIND));
widgetFactory.adapt(oppositeOf);
oppositeOf.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
GridData oppositeOfData = new GridData(GridData.FILL_HORIZONTAL);
oppositeOf.setLayoutData(oppositeOfData);
oppositeOf.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(ReferencePropertiesEditionPartForm.this, EnvironmentViewsRepository.Reference.Properties.oppositeOf, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, getOppositeOf()));
}
});
oppositeOf.setID(EnvironmentViewsRepository.Reference.Properties.oppositeOf);
// $NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(EnvironmentViewsRepository.Reference.Properties.oppositeOf, EnvironmentViewsRepository.FORM_KIND), null);
// End of user code
return parent;
}
Aggregations