Package org.eclipse.cdt.core.resources
Class ExclusionInstance
java.lang.Object
org.eclipse.cdt.core.resources.ExclusionInstance
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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
protected String
static final String
protected ExclusionType
static final String
protected RefreshExclusion
protected org.eclipse.core.resources.IResource
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the parent exclusion of this exclusion instance.org.eclipse.core.resources.IResource
If there is a resource directly associated with this exclusion instance, returns the resource.protected void
static ExclusionInstance
loadInstanceData
(ICStorageElement instanceElement, RefreshScopeManager manager) protected void
persistExtendedInstanceData
(ICStorageElement instanceElement) void
persistInstanceData
(ICStorageElement exclusionElement) void
setDisplayString
(String displayString) void
void
setParentExclusion
(RefreshExclusion parent) void
setResource
(org.eclipse.core.resources.IResource resource)
-
Field Details
-
CLASS_ATTRIBUTE_NAME
- See Also:
-
CONTRIBUTOR_ID_ATTRIBUTE_NAME
- See Also:
-
DISPLAY_STRING_ATTRIBUTE_NAME
- See Also:
-
EXCLUSION_ELEMENT_NAME
- See Also:
-
EXCLUSION_TYPE_ATTRIBUTE_NAME
- See Also:
-
EXTENSION_DATA_ELEMENT_NAME
- See Also:
-
FILE_VALUE
- See Also:
-
FOLDER_VALUE
- See Also:
-
INSTANCE_ELEMENT_NAME
- See Also:
-
RESOURCE_VALUE
- See Also:
-
WORKSPACE_PATH_ATTRIBUTE_NAME
- See Also:
-
fDisplayString
-
fInstanceExclusionType
-
fParent
-
fResource
protected org.eclipse.core.resources.IResource fResource
-
-
Constructor Details
-
ExclusionInstance
public ExclusionInstance()
-
-
Method Details
-
loadInstanceData
public static ExclusionInstance loadInstanceData(ICStorageElement instanceElement, RefreshScopeManager manager) -
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
-
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
-
persistExtendedInstanceData
-
persistInstanceData
-
setDisplayString
-
setExclusionType
-
setParentExclusion
- Parameters:
parent
- the RefreshExclusion to set as the parent.
-
setResource
public void setResource(org.eclipse.core.resources.IResource resource)
-