Class ECPReferenceServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addExistingModelElements​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
      Adds existing model elements to the EReference.
      void addNewModelElements​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
      Deprecated. 
      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.
      void dispose()
      Dispose.
      int getPriority()
      Returns the priority for this view service.
      void instantiate​(ViewModelContext context)
      Instantiate the view service.
      void openInNewContext​(org.eclipse.emf.ecore.EObject eObject)
      Opens an EObject in a new context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ECPReferenceServiceImpl

        public ECPReferenceServiceImpl()
    • Method Detail

      • addNewModelElements

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

        public Optional<org.eclipse.emf.ecore.EObject> addNewModelElements​(org.eclipse.emf.ecore.EObject eObject,
                                                                           org.eclipse.emf.ecore.EReference eReference,
                                                                           boolean openInNewContext)
        Description copied from interface: ReferenceService
        Adds new model elements to the EReference. The implementation is responsible for providing a selection mechanism, e.g. a dialog.
        Specified by:
        addNewModelElements in interface ReferenceService
        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
      • addExistingModelElements

        public 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.
        Specified by:
        addExistingModelElements in interface ReferenceService
        Parameters:
        eObject - the EObject to add
        eReference - the EReference to add the EObject to
        Since:
        1.5