use of org.palladiosimulator.editors.commons.dialogs.selection.PalladioSelectEObjectDialog in project Palladio-Editors-Sirius by PalladioSimulator.
the class AddEventChannel method getEventGroup.
private EventGroup getEventGroup(final EventChannel eventChannel) {
// Repository > EventGroup
Collection<Object> filter = new ArrayList<Object>();
filter.add(Repository.class);
filter.add(EventGroup.class);
// Additional Child References
Collection<EReference> additionalChildReferences = new ArrayList<EReference>();
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
PalladioSelectEObjectDialog dialog = new PalladioSelectEObjectDialog(shell, filter, additionalChildReferences, eventChannel.eResource().getResourceSet());
dialog.setProvidedService(EventGroup.class);
dialog.open();
return (EventGroup) dialog.getResult();
}
use of org.palladiosimulator.editors.commons.dialogs.selection.PalladioSelectEObjectDialog 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();
}
use of org.palladiosimulator.editors.commons.dialogs.selection.PalladioSelectEObjectDialog in project Palladio-Editors-Sirius by PalladioSimulator.
the class AddOperationProvidedRole method getOperationInterface.
private OperationInterface getOperationInterface(OperationProvidedRole role) {
Collection<Object> filter = new ArrayList<Object>();
filter.add(Repository.class);
filter.add(OperationInterface.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(OperationInterface.class);
dialog.open();
return (OperationInterface) dialog.getResult();
}
use of org.palladiosimulator.editors.commons.dialogs.selection.PalladioSelectEObjectDialog in project Palladio-Editors-Sirius by PalladioSimulator.
the class AddSinkRole method getEventGroup.
private EventGroup getEventGroup(SinkRole role) {
Collection<Object> filter = new ArrayList<Object>();
filter.add(Repository.class);
filter.add(EventGroup.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(EventGroup.class);
dialog.open();
return (EventGroup) dialog.getResult();
}
Aggregations