public abstract class RefreshExclusion extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_ATTRIBUTE_NAME |
static String |
CONTRIBUTOR_ID_ATTRIBUTE_NAME |
static String |
DISPLAY_STRING_ATTRIBUTE_NAME |
static String |
EXCLUSION_ELEMENT_NAME |
static String |
EXCLUSION_TYPE_ATTRIBUTE_NAME |
static String |
EXTENSION_DATA_ELEMENT_NAME |
protected String |
fContributorId |
protected List<ExclusionInstance> |
fExclusionInstanceList |
protected ExclusionType |
fExclusionType |
static String |
FILE_VALUE |
protected List<RefreshExclusion> |
fNestedExclusions |
static String |
FOLDER_VALUE |
protected RefreshExclusion |
fParentExclusion |
protected org.eclipse.core.resources.IResource |
fParentResource |
static String |
INSTANCE_ELEMENT_NAME |
static String |
RESOURCE_VALUE |
static String |
WORKSPACE_PATH_ATTRIBUTE_NAME |
Constructor and Description |
---|
RefreshExclusion() |
Modifier and Type | Method and Description |
---|---|
void |
addExclusionInstance(ExclusionInstance exclusionInstance)
Adds an instance to the list of instances of this exclusion.
|
void |
addNestedExclusion(RefreshExclusion exclusion) |
abstract Object |
clone() |
protected void |
copyTo(RefreshExclusion destination)
Duplicate this refresh exclusion to the given one.
|
String |
getContributorId() |
List<ExclusionInstance> |
getExclusionInstances() |
ExclusionType |
getExclusionType() |
abstract String |
getName() |
List<RefreshExclusion> |
getNestedExclusions() |
RefreshExclusion |
getParentExclusion()
If this is a nested exclusion, returns the exclusion which is the direct parent of this one.
|
org.eclipse.core.resources.IResource |
getParentResource()
If this exclusion is a direct descendant of a resource, returns that resource.
|
static List<RefreshExclusion> |
loadData(ICStorageElement parentElement,
RefreshExclusion parentExclusion,
org.eclipse.core.resources.IResource parentResource,
RefreshScopeManager manager) |
protected void |
loadExtendedData(ICStorageElement grandchild) |
void |
persistData(ICStorageElement parentElement) |
protected void |
persistExtendedData(ICStorageElement extensionElement) |
void |
removeExclusionInstance(ExclusionInstance exclusionInstance)
Removes an exclusion instance from the list of instances of this exclusion.
|
void |
removeNestedExclusion(RefreshExclusion exclusion)
Removes the given nested exclusion.
|
void |
setContributorId(String id) |
void |
setExclusionType(ExclusionType exclusionType) |
void |
setParentExclusion(RefreshExclusion parent) |
void |
setParentResource(org.eclipse.core.resources.IResource parentResource)
Sets the parent resource of this exclusion.
|
abstract boolean |
supportsExclusionInstances() |
abstract boolean |
testExclusion(org.eclipse.core.resources.IResource resource)
Tests a given resource to see if this exclusion applies to it.
|
boolean |
testExclusionChain(org.eclipse.core.resources.IResource resource)
Tests this exclusion and recursively test all of its nested exclusions to determine whether this
exclusion should be triggered or not.
|
public static final String CLASS_ATTRIBUTE_NAME
public static final String CONTRIBUTOR_ID_ATTRIBUTE_NAME
public static final String DISPLAY_STRING_ATTRIBUTE_NAME
public static final String EXCLUSION_ELEMENT_NAME
public static final String EXCLUSION_TYPE_ATTRIBUTE_NAME
public static final String EXTENSION_DATA_ELEMENT_NAME
public static final String FILE_VALUE
public static final String FOLDER_VALUE
public static final String INSTANCE_ELEMENT_NAME
public static final String RESOURCE_VALUE
public static final String WORKSPACE_PATH_ATTRIBUTE_NAME
protected String fContributorId
protected List<ExclusionInstance> fExclusionInstanceList
protected ExclusionType fExclusionType
protected List<RefreshExclusion> fNestedExclusions
protected RefreshExclusion fParentExclusion
protected org.eclipse.core.resources.IResource fParentResource
public static List<RefreshExclusion> loadData(ICStorageElement parentElement, RefreshExclusion parentExclusion, org.eclipse.core.resources.IResource parentResource, RefreshScopeManager manager) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void addExclusionInstance(ExclusionInstance exclusionInstance)
exclusionInstance
- public void addNestedExclusion(RefreshExclusion exclusion)
public String getContributorId()
public List<ExclusionInstance> getExclusionInstances()
public ExclusionType getExclusionType()
public abstract String getName()
public List<RefreshExclusion> getNestedExclusions()
public RefreshExclusion getParentExclusion()
public org.eclipse.core.resources.IResource getParentResource()
protected void loadExtendedData(ICStorageElement grandchild)
public void persistData(ICStorageElement parentElement)
protected void persistExtendedData(ICStorageElement extensionElement)
public void removeExclusionInstance(ExclusionInstance exclusionInstance)
exclusionInstance
- public void removeNestedExclusion(RefreshExclusion exclusion)
exclusion
- public void setContributorId(String id)
public void setExclusionType(ExclusionType exclusionType)
public void setParentExclusion(RefreshExclusion parent)
public void setParentResource(org.eclipse.core.resources.IResource parentResource)
parentResource
- the parent resource to setpublic abstract boolean supportsExclusionInstances()
public abstract boolean testExclusion(org.eclipse.core.resources.IResource resource)
resource
- the resource to be tested.public boolean testExclusionChain(org.eclipse.core.resources.IResource resource)
resource
- the resource to be testedprotected void copyTo(RefreshExclusion destination)
destination
- - the refresh exclusion to be modifiedCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.