public interface IResourceFilterDescription
IContainer.getFilters()
Modifier and Type | Field and Description |
---|---|
static int |
EXCLUDE_ALL
Flag for resource filters indicating that the filter list excludes all
the files matching the filters.
|
static int |
FILES
Flag for resource filters indicating that this filter applies to files.
|
static int |
FOLDERS
Flag for resource filters indicating that this filter applies to folders.
|
static int |
INCLUDE_ONLY
Flag for resource filters indicating that the filter list includes only
the files matching the filters.
|
static int |
INHERITABLE
Flag for resource filters indicating that the container children of the
path inherit from this filter as well.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(int updateFlags,
IProgressMonitor monitor)
Deletes this filter description from its associated resource.
|
FileInfoMatcherDescription |
getFileInfoMatcherDescription()
Returns the description of the file info matcher corresponding to this resource
filter.
|
IResource |
getResource()
Return the resource towards which this filter is set.
|
int |
getType()
Return the filter type, either INCLUDE_ONLY or EXCLUDE_ALL
|
static final int INCLUDE_ONLY
static final int EXCLUDE_ALL
static final int FILES
static final int FOLDERS
static final int INHERITABLE
FileInfoMatcherDescription getFileInfoMatcherDescription()
IResource getResource()
int getType()
void delete(int updateFlags, IProgressMonitor monitor) throws CoreException
The IResource.BACKGROUND_REFRESH
update flag controls when
changes to the resource hierarchy under this container resulting from the filter
removal take effect. If this flag is specified, the resource hierarchy is updated in a
separate thread after this method returns. If the flag is not specified, any resource
changes resulting from the filter removal will occur before this method returns.
This operation changes resources; these changes will be reported in a subsequent resource change event that will include an indication of any resources that have been added as a result of the filter removal.
This operation is long-running; progress and cancellation are provided by the given progress monitor.
updateFlags
- bit-wise or of update flag constants
(IResource.BACKGROUND_REFRESH
)monitor
- a progress monitor, or null
if progress
reporting is not desiredCoreException
- if this filter could not be removed. Reasons include:
IResourceChangeEvent
for more details.OperationCanceledException
- if the operation is canceled.
Cancelation can occur even if no progress monitor is provided.IContainer.getFilters()
,
IContainer.createFilter(int, FileInfoMatcherDescription, int, IProgressMonitor)
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.