Search in sources :

Example 1 with EventTypesTabItemProviderAdapterFactory

use of org.palladiosimulator.editors.commons.tabs.operations.EventTypesTabItemProviderAdapterFactory in project Palladio-Editors-Sirius by PalladioSimulator.

the class EventGroupTableLifecycleManager method setPropertySection.

@Override
protected void setPropertySection(Composite parent) {
    editorSection = new EventTypesEditorSection(parent);
    editorSection.setViewerContentProvider(new AdapterFactoryContentProvider(adapterFactory));
    editorSection.setViewerLabelProvider(new AdapterFactoryLabelProvider(new EventTypesTabItemProviderAdapterFactory(new PalladioItemProviderAdapterFactory(adapterFactory))));
    EventGroup input = (EventGroup) controller.getValue();
    editorSection.setViewerInput(input);
    ((EventTypesEditorSection) editorSection).getAddButtonListener().setSelectedInterface((EventGroup) input);
}
Also used : EventTypesEditorSection(org.palladiosimulator.editors.sirius.repository.custom.properties.editorsections.EventTypesEditorSection) EventTypesTabItemProviderAdapterFactory(org.palladiosimulator.editors.commons.tabs.operations.EventTypesTabItemProviderAdapterFactory) AdapterFactoryContentProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider) AdapterFactoryLabelProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider) PalladioItemProviderAdapterFactory(org.palladiosimulator.pcm.ui.provider.PalladioItemProviderAdapterFactory) EventGroup(org.palladiosimulator.pcm.repository.EventGroup)

Aggregations

AdapterFactoryContentProvider (org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider)1 AdapterFactoryLabelProvider (org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider)1 EventTypesTabItemProviderAdapterFactory (org.palladiosimulator.editors.commons.tabs.operations.EventTypesTabItemProviderAdapterFactory)1 EventTypesEditorSection (org.palladiosimulator.editors.sirius.repository.custom.properties.editorsections.EventTypesEditorSection)1 EventGroup (org.palladiosimulator.pcm.repository.EventGroup)1 PalladioItemProviderAdapterFactory (org.palladiosimulator.pcm.ui.provider.PalladioItemProviderAdapterFactory)1