Package org.eclipse.cdt.core.resources
Class ExclusionInstance
- java.lang.Object
-
- org.eclipse.cdt.core.resources.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_ATTRIBUTE_NAMEstatic StringCONTRIBUTOR_ID_ATTRIBUTE_NAMEstatic StringDISPLAY_STRING_ATTRIBUTE_NAMEstatic StringEXCLUSION_ELEMENT_NAMEstatic StringEXCLUSION_TYPE_ATTRIBUTE_NAMEstatic StringEXTENSION_DATA_ELEMENT_NAMEprotected StringfDisplayStringstatic StringFILE_VALUEprotected ExclusionTypefInstanceExclusionTypestatic StringFOLDER_VALUEprotected RefreshExclusionfParentprotected org.eclipse.core.resources.IResourcefResourcestatic StringINSTANCE_ELEMENT_NAMEstatic StringRESOURCE_VALUEstatic 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 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(String displayString)voidsetExclusionType(ExclusionType type)voidsetParentExclusion(RefreshExclusion parent)voidsetResource(org.eclipse.core.resources.IResource resource)
-
-
-
Field Detail
-
CLASS_ATTRIBUTE_NAME
public static final String CLASS_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
CONTRIBUTOR_ID_ATTRIBUTE_NAME
public static final String CONTRIBUTOR_ID_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
DISPLAY_STRING_ATTRIBUTE_NAME
public static final String DISPLAY_STRING_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
EXCLUSION_ELEMENT_NAME
public static final String EXCLUSION_ELEMENT_NAME
- See Also:
- Constant Field Values
-
EXCLUSION_TYPE_ATTRIBUTE_NAME
public static final String EXCLUSION_TYPE_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
EXTENSION_DATA_ELEMENT_NAME
public static final String EXTENSION_DATA_ELEMENT_NAME
- See Also:
- Constant Field Values
-
FILE_VALUE
public static final String FILE_VALUE
- See Also:
- Constant Field Values
-
FOLDER_VALUE
public static final String FOLDER_VALUE
- See Also:
- Constant Field Values
-
INSTANCE_ELEMENT_NAME
public static final String INSTANCE_ELEMENT_NAME
- See Also:
- Constant Field Values
-
RESOURCE_VALUE
public static final String RESOURCE_VALUE
- See Also:
- Constant Field Values
-
WORKSPACE_PATH_ATTRIBUTE_NAME
public static final String WORKSPACE_PATH_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
fDisplayString
protected 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 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(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)
-
-