Search in sources :

Example 1 with PalladioItemProviderAdapterFactory

use of org.palladiosimulator.pcm.ui.provider.PalladioItemProviderAdapterFactory 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)

Example 2 with PalladioItemProviderAdapterFactory

use of org.palladiosimulator.pcm.ui.provider.PalladioItemProviderAdapterFactory in project Palladio-Editors-Sirius by PalladioSimulator.

the class InfrastructureInterfaceTableLifecycleManager method setPropertySection.

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

Example 3 with PalladioItemProviderAdapterFactory

use of org.palladiosimulator.pcm.ui.provider.PalladioItemProviderAdapterFactory 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)3 AdapterFactoryLabelProvider (org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider)3 PalladioItemProviderAdapterFactory (org.palladiosimulator.pcm.ui.provider.PalladioItemProviderAdapterFactory)3 EventTypesTabItemProviderAdapterFactory (org.palladiosimulator.editors.commons.tabs.operations.EventTypesTabItemProviderAdapterFactory)1 InfrastructureSignaturesTabItemProviderAdapterFactory (org.palladiosimulator.editors.commons.tabs.operations.InfrastructureSignaturesTabItemProviderAdapterFactory)1 OperationsTabItemProviderAdapterFactory (org.palladiosimulator.editors.commons.tabs.operations.OperationsTabItemProviderAdapterFactory)1 EventTypesEditorSection (org.palladiosimulator.editors.sirius.repository.custom.properties.editorsections.EventTypesEditorSection)1 InfrastructureSignaturesEditorSection (org.palladiosimulator.editors.sirius.repository.custom.properties.editorsections.InfrastructureSignaturesEditorSection)1 OperationsEditorSection (org.palladiosimulator.editors.sirius.repository.custom.properties.editorsections.OperationsEditorSection)1 EventGroup (org.palladiosimulator.pcm.repository.EventGroup)1 InfrastructureInterface (org.palladiosimulator.pcm.repository.InfrastructureInterface)1 OperationInterface (org.palladiosimulator.pcm.repository.OperationInterface)1