String id = bpmnElement.getId();
if (shape.getId() == null)
shape.setId(id);
if (!bpmnElement.eAdapters().contains(liveValidationContentAdapter)) {
bpmnElement.eAdapters().add(liveValidationContentAdapter);
}
}
private void handleEvents(BaseElement bpmnElement, PictogramElement newContainer) {
if (bpmnElement instanceof Event) {