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();
}
Aggregations