Search in sources :

Example 1 with OperationsEditorSection

use of org.palladiosimulator.editors.sirius.repository.custom.properties.editorsections.OperationsEditorSection in project Palladio-Editors-Sirius by PalladioSimulator.

the class OperationInterfaceTableLifecycleManager method setPropertySection.

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

Aggregations

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