Class ExclusionInstance


  • public class ExclusionInstance
    extends Object
    Represents a particular instance of an exclusion. E.g., if an exclusion allowed for the exclusion of a list individual resources, there would be one exclusion instance per resource. Each exclusion instance is presented in the user interface as a child of the exclusion. Clients may extend this class to provide custom implementations for their exclusion type. EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the CDT team.
    Since:
    5.3
    • Constructor Detail

      • ExclusionInstance

        public ExclusionInstance()
    • Method Detail

      • getDisplayString

        public String getDisplayString()
        Returns:
        a String corresponding to the human-readable name for this exclusion instance. Examples of this would be the resource name for a resource based exclusion, or the file extension excluded by a file extension exclusion.
      • getParentExclusion

        public RefreshExclusion getParentExclusion()
        Returns the parent exclusion of this exclusion instance.
        Returns:
        RefreshExclusion
      • getResource

        public org.eclipse.core.resources.IResource getResource()
        If there is a resource directly associated with this exclusion instance, returns the resource.
        Returns:
        IResource
      • loadExtendedInstanceData

        protected void loadExtendedInstanceData​(ICStorageElement child)
      • persistExtendedInstanceData

        protected void persistExtendedInstanceData​(ICStorageElement instanceElement)
      • persistInstanceData

        public void persistInstanceData​(ICStorageElement exclusionElement)
      • setDisplayString

        public void setDisplayString​(String displayString)
      • setExclusionType

        public void setExclusionType​(ExclusionType type)
      • setParentExclusion

        public void setParentExclusion​(RefreshExclusion parent)
        Parameters:
        parent - the RefreshExclusion to set as the parent.
      • setResource

        public void setResource​(org.eclipse.core.resources.IResource resource)