Interface InternalProject

    • Method Detail

      • getProviderSpecificData

        java.lang.Object getProviderSpecificData()
        This method returns the provider specific data of this project.
        Returns:
        the provider specific data of this project
      • setProviderSpecificData

        void setProviderSpecificData​(java.lang.Object data)
        This method sets the provider specific data of this project.
        Parameters:
        data - the provider specific data of this project
      • notifyObjectsChanged

        void notifyObjectsChanged​(java.util.Collection<java.lang.Object> objects,
                                  boolean structural)
        This method is a callback for the provider to notify the project about changes.
        Parameters:
        objects - the objects that have changed
        structural - if the changes where structural (e.g. delete)
      • undispose

        void undispose​(InternalRepository repository)
        This method undisposes the project based on a repository.
        Parameters:
        repository - the repository
      • clone

        InternalProject clone​(java.lang.String name)
        This method clones a project.
        Parameters:
        name - the name of the project to create
        Returns:
        the cloned project
      • saveProperties

        @Deprecated
        void saveProperties()
        Deprecated.
        As of 1.1 properties are saved automatically when they're changed.
        Saves the properties, such as visible packages or the name of the project into the workspace.
      • getReferenceCandidates

        java.util.Iterator<org.eclipse.emf.ecore.EObject> getReferenceCandidates​(org.eclipse.emf.ecore.EObject eObject,
                                                                                 org.eclipse.emf.ecore.EReference eReference)
        Get all possible EObjects from the provider to which a reference can be added from a certain EObject based on the type of the EReference.
        Parameters:
        eObject - - the EObject for which the reference should be set.
        eReference - - the EReference to be set.
        Returns:
        Iterator over all EObject that can be added as a reference
      • isModelRoot

        boolean isModelRoot​(java.lang.Object object)
        This method checks whether the provided object is the model root of the project.
        Parameters:
        object - the object to check
        Returns:
        true if the object is the root of the model of this project, false otherwise
      • getUnsupportedEPackages

        java.util.Set<org.eclipse.emf.ecore.EPackage> getUnsupportedEPackages()
        Returns a collection of EPackages which are not supported by the provider. EObjects from these packages cannot be created within the project.
        Returns:
        Collection of unsupported EPackages
      • setVisiblePackages

        void setVisiblePackages​(java.util.Set<org.eclipse.emf.ecore.EPackage> visiblePackages)
        Set the visible EPackages. New model elements can only be created from EPackages contained in the visiblePackages and the setVisibleEClasses(Set).
        Parameters:
        visiblePackages - the EPackages to be visible
      • getVisiblePackages

        java.util.Set<org.eclipse.emf.ecore.EPackage> getVisiblePackages()
        Get the currently visible EPackages. If no filter is set, then all EPackages supported by the provider are returned.
        Returns:
        Set of EPackages that should be available, or all supported EPackages
      • getVisibleEClasses

        java.util.Set<org.eclipse.emf.ecore.EClass> getVisibleEClasses()
        Get the currently visible EClasses. If no visible EClasses are set, then an empty Set is returned.
        Returns:
        Set of EClasses that should be available, or empty.
      • setVisibleEClasses

        void setVisibleEClasses​(java.util.Set<org.eclipse.emf.ecore.EClass> visibleEClasses)
        Set the visible EClasses.
        Parameters:
        visibleEClasses - the classes that should be available
      • contains

        boolean contains​(java.lang.Object object)
        Check whether a project contains an Object.
        Parameters:
        object - the object to check for containment
        Returns:
        true if the object is in the project, false otherwise