use of org.palladiosimulator.pcm.core.composition.EventChannel in project Palladio-Editors-Sirius by PalladioSimulator.
the class AddAllocationContextEventChannel method getEventChannel.
private EventChannel getEventChannel(AllocationContext allocationContext) {
Collection<Object> filter = new ArrayList<Object>();
filter.add(org.palladiosimulator.pcm.system.System.class);
filter.add(EventChannel.class);
Collection<EReference> additionalChildReferences = new ArrayList<EReference>();
PalladioSelectEObjectDialog dialog = new PalladioSelectEObjectDialog(SHELL, filter, additionalChildReferences, allocationContext.eResource().getResourceSet());
dialog.setProvidedService(EventChannel.class);
dialog.open();
return (EventChannel) dialog.getResult();
}
use of org.palladiosimulator.pcm.core.composition.EventChannel in project Palladio-Editors-Sirius by PalladioSimulator.
the class AddAllocationContextEventChannel method execute.
@Override
public void execute(final Collection<? extends EObject> selections, final Map<String, Object> parameters) {
AllocationContext allocationContext = (AllocationContext) parameters.get("instance");
EventChannel eventChannel = getEventChannel(allocationContext);
allocationContext.setEventChannel__AllocationContext(eventChannel);
}
use of org.palladiosimulator.pcm.core.composition.EventChannel in project Palladio-Editors-Sirius by PalladioSimulator.
the class AddEventChannel method execute.
@Override
public void execute(Collection<? extends EObject> selections, Map<String, Object> parameters) {
EventChannel eventChannel = (EventChannel) parameters.get("instance");
EventGroup eventGroup = getEventGroup(eventChannel);
eventChannel.setEventGroup__EventChannel(eventGroup);
}
Aggregations