コード例 #1
0
 /**
  * {@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);
 }
コード例 #2
0
 /**
  * {@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());
 }