Class ExclusionInstance


  • public class ExclusionInstance
    extends java.lang.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
    • Field Detail

      • CLASS_ATTRIBUTE_NAME

        public static final java.lang.String CLASS_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • CONTRIBUTOR_ID_ATTRIBUTE_NAME

        public static final java.lang.String CONTRIBUTOR_ID_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • DISPLAY_STRING_ATTRIBUTE_NAME

        public static final java.lang.String DISPLAY_STRING_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • EXCLUSION_ELEMENT_NAME

        public static final java.lang.String EXCLUSION_ELEMENT_NAME
        See Also:
        Constant Field Values
      • EXCLUSION_TYPE_ATTRIBUTE_NAME

        public static final java.lang.String EXCLUSION_TYPE_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • EXTENSION_DATA_ELEMENT_NAME

        public static final java.lang.String EXTENSION_DATA_ELEMENT_NAME
        See Also:
        Constant Field Values
      • INSTANCE_ELEMENT_NAME

        public static final java.lang.String INSTANCE_ELEMENT_NAME
        See Also:
        Constant Field Values
      • WORKSPACE_PATH_ATTRIBUTE_NAME

        public static final java.lang.String WORKSPACE_PATH_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • fDisplayString

        protected java.lang.String fDisplayString
      • fInstanceExclusionType

        protected ExclusionType fInstanceExclusionType
      • fResource

        protected org.eclipse.core.resources.IResource fResource
    • Constructor Detail

      • ExclusionInstance

        public ExclusionInstance()
    • Method Detail

      • getDisplayString

        public java.lang.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​(java.lang.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)