/** * {@inheritDoc} * * @see * org.eclipse.emf.ecp.edit.spi.ReferenceService#addNewModelElements(org.eclipse.emf.ecore.EObject, * org.eclipse.emf.ecore.EReference) */ @Override public void addNewModelElements(EObject eObject, EReference eReference) { if (delegate == null) { return; } delegate.addNewModelElements(eObject, eReference); }
/** * {@inheritDoc} * * @see org.eclipse.jface.action.Action#run() */ @Override public void run() { final EClassifier selectedClassifier = getExistingEClassifiers(); if (selectedClassifier == null) { return; } referenceService.addNewModelElements( selectedClassifier, (EReference) getSetting().getEStructuralFeature()); }