Interface ReferenceService

    • Method Detail

      • addNewModelElements

        @Deprecated
        void addNewModelElements​(org.eclipse.emf.ecore.EObject eObject,
                                 org.eclipse.emf.ecore.EReference eReference)
        Adds new model elements to the EReference. The implementation is responsible for providing a selection meachsims, e.g. a dialog.
        Parameters:
        eObject - the EObject to add
        eReference - the EReference to add the EObject to
        Since:
        1.5
      • addNewModelElements

        Optional<org.eclipse.emf.ecore.EObject> addNewModelElements​(org.eclipse.emf.ecore.EObject eObject,
                                                                    org.eclipse.emf.ecore.EReference eReference,
                                                                    boolean openInNewContext)
        Adds new model elements to the EReference. The implementation is responsible for providing a selection mechanism, e.g. a dialog.
        Parameters:
        eObject - the EObject to add
        eReference - the EReference to add the EObject to
        openInNewContext - Hints the reference service whether the created model element should be opened in a new context
        Returns:
        The created model element
        Since:
        1.17
      • addExistingModelElements

        void addExistingModelElements​(org.eclipse.emf.ecore.EObject eObject,
                                      org.eclipse.emf.ecore.EReference eReference)
        Adds existing model elements to the EReference. The implementation is responsible for providing a selection meachsims, e.g. a dialog.
        Parameters:
        eObject - the EObject to add
        eReference - the EReference to add the EObject to
        Since:
        1.5
      • openInNewContext

        void openInNewContext​(org.eclipse.emf.ecore.EObject eObject)
        Opens an EObject in a new context.
        Parameters:
        eObject - the EObject to open in a new context