Package org.eclipse.cdt.core.resources
Class ExclusionInstance
- java.lang.Object
-
- org.eclipse.cdt.core.resources.ExclusionInstance
-
public class ExclusionInstance extends java.lang.ObjectRepresents 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 Summary
Fields Modifier and Type Field Description static java.lang.StringCLASS_ATTRIBUTE_NAMEstatic java.lang.StringCONTRIBUTOR_ID_ATTRIBUTE_NAMEstatic java.lang.StringDISPLAY_STRING_ATTRIBUTE_NAMEstatic java.lang.StringEXCLUSION_ELEMENT_NAMEstatic java.lang.StringEXCLUSION_TYPE_ATTRIBUTE_NAMEstatic java.lang.StringEXTENSION_DATA_ELEMENT_NAMEprotected java.lang.StringfDisplayStringstatic java.lang.StringFILE_VALUEprotected ExclusionTypefInstanceExclusionTypestatic java.lang.StringFOLDER_VALUEprotected RefreshExclusionfParentprotected org.eclipse.core.resources.IResourcefResourcestatic java.lang.StringINSTANCE_ELEMENT_NAMEstatic java.lang.StringRESOURCE_VALUEstatic java.lang.StringWORKSPACE_PATH_ATTRIBUTE_NAME
-
Constructor Summary
Constructors Constructor Description ExclusionInstance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayString()ExclusionTypegetExclusionType()RefreshExclusiongetParentExclusion()Returns the parent exclusion of this exclusion instance.org.eclipse.core.resources.IResourcegetResource()If there is a resource directly associated with this exclusion instance, returns the resource.protected voidloadExtendedInstanceData(ICStorageElement child)static ExclusionInstanceloadInstanceData(ICStorageElement instanceElement, RefreshScopeManager manager)protected voidpersistExtendedInstanceData(ICStorageElement instanceElement)voidpersistInstanceData(ICStorageElement exclusionElement)voidsetDisplayString(java.lang.String displayString)voidsetExclusionType(ExclusionType type)voidsetParentExclusion(RefreshExclusion parent)voidsetResource(org.eclipse.core.resources.IResource resource)
-
-
-
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
-
FILE_VALUE
public static final java.lang.String FILE_VALUE
- See Also:
- Constant Field Values
-
FOLDER_VALUE
public static final java.lang.String FOLDER_VALUE
- See Also:
- Constant Field Values
-
INSTANCE_ELEMENT_NAME
public static final java.lang.String INSTANCE_ELEMENT_NAME
- See Also:
- Constant Field Values
-
RESOURCE_VALUE
public static final java.lang.String RESOURCE_VALUE
- 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
-
fParent
protected RefreshExclusion fParent
-
fResource
protected org.eclipse.core.resources.IResource fResource
-
-
Method Detail
-
loadInstanceData
public static ExclusionInstance loadInstanceData(ICStorageElement instanceElement, RefreshScopeManager manager)
-
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.
-
getExclusionType
public ExclusionType getExclusionType()
-
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)
-
-