Search in sources :

Example 6 with InfrastructureInterface

use of org.palladiosimulator.pcm.repository.InfrastructureInterface in project Palladio-Editors-Sirius by PalladioSimulator.

the class AddInfrastructureRequiredRole method getInfrastructureInterface.

private InfrastructureInterface getInfrastructureInterface(InfrastructureRequiredRole role) {
    Collection<Object> filter = new ArrayList<Object>();
    filter.add(Repository.class);
    filter.add(InfrastructureInterface.class);
    // Additional Child References
    Collection<EReference> additionalChildReferences = new ArrayList<EReference>();
    // Creating the dialog
    PalladioSelectEObjectDialog dialog = new PalladioSelectEObjectDialog(SHELL, filter, additionalChildReferences, role.eResource().getResourceSet());
    // Setting the needed object type
    dialog.setProvidedService(InfrastructureInterface.class);
    dialog.open();
    return (InfrastructureInterface) dialog.getResult();
}
Also used : PalladioSelectEObjectDialog(org.palladiosimulator.editors.commons.dialogs.selection.PalladioSelectEObjectDialog) ArrayList(java.util.ArrayList) EObject(org.eclipse.emf.ecore.EObject) EReference(org.eclipse.emf.ecore.EReference) InfrastructureInterface(org.palladiosimulator.pcm.repository.InfrastructureInterface)

Aggregations

InfrastructureInterface (org.palladiosimulator.pcm.repository.InfrastructureInterface)6 ArrayList (java.util.ArrayList)3 EObject (org.eclipse.emf.ecore.EObject)3 EReference (org.eclipse.emf.ecore.EReference)3 PalladioSelectEObjectDialog (org.palladiosimulator.editors.commons.dialogs.selection.PalladioSelectEObjectDialog)3 InfrastructureRequiredRole (org.palladiosimulator.pcm.repository.InfrastructureRequiredRole)2 AdapterFactoryContentProvider (org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider)1 AdapterFactoryLabelProvider (org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider)1 InfrastructureSignaturesTabItemProviderAdapterFactory (org.palladiosimulator.editors.commons.tabs.operations.InfrastructureSignaturesTabItemProviderAdapterFactory)1 InfrastructureSignaturesEditorSection (org.palladiosimulator.editors.sirius.repository.custom.properties.editorsections.InfrastructureSignaturesEditorSection)1 BasicComponent (org.palladiosimulator.pcm.repository.BasicComponent)1 InfrastructureProvidedRole (org.palladiosimulator.pcm.repository.InfrastructureProvidedRole)1 InfrastructureSignature (org.palladiosimulator.pcm.repository.InfrastructureSignature)1 RequiredRole (org.palladiosimulator.pcm.repository.RequiredRole)1 ServiceEffectSpecification (org.palladiosimulator.pcm.seff.ServiceEffectSpecification)1 PalladioItemProviderAdapterFactory (org.palladiosimulator.pcm.ui.provider.PalladioItemProviderAdapterFactory)1