public interface IProject extends IFileInterpreter
Modifier and Type | Method and Description |
---|---|
void |
addBlacklistPattern(String pattern)
Adds the specified pattern to the blacklist.
|
IAbstractFile |
addFile(IAbstractFile file)
Adds the given file to the project.
|
void |
addFileToBlacklist(IAbstractFile file)
Adds the specified file to the blacklist.
|
void |
addProjectListener(IProjectListener listener)
Adds the given project listener to the project.
|
void |
delete()
This method asks the user if the project should removed form workspace
or deleted and deletes the project if the user wants it.
|
Iterator |
getFileIterator()
Returns an iterator that is capable to iterate over all files of the
project.
|
IAbstractFile[] |
getFiles()
Returns an array containing all files of the project.
|
IAbstractFile[] |
getFiles(Class filter)
Returns an array containing all files of the project.
|
String |
getName()
Return the name of the project.
|
int |
getSize()
Returns the size of the project.
|
boolean |
isFileInBlacklist(IAbstractFile file)
Determines whether the file is in the blacklist or not.
|
void |
removeBlacklistPattern(String pattern)
Removes the pattern from the blacklist.
|
void |
removeFile(IAbstractFile file)
Removes the given file from the project.
|
void |
removeFileFromBlacklist(IAbstractFile file)
Removes the given file from the blacklist.
|
void |
removeProjectListener(IProjectListener listener)
Removes the given project listener form the projects.
|
IAbstractFile[] |
updateFiles(boolean recursive)
Reqeusts an update in the project.
|
addFileInterpreterListener, getAbstractFile, getProvider, load, removeFileInterpreterListener, save
String getName()
void delete()
void addProjectListener(IProjectListener listener)
listener
- the listener to add to the projectvoid removeProjectListener(IProjectListener listener)
listener
- the listener that should be removed from the projectIAbstractFile addFile(IAbstractFile file) throws ChildNotAcceptedException
file
- the file that should be added to the project.ChildNotAcceptedException
- -
if the project does not accept the file, e.g. the file is in
the black listvoid removeFile(IAbstractFile file)
file
- the file to remove from the projectIAbstractFile[] updateFiles(boolean recursive)
recursive
- a boolean parameter to set the update mode for the method. If
this parameter is set to true, subfolders are updated too.
Otherwise subfolders are ignored.IAbstractFile[] getFiles()
IAbstractFile[] getFiles(Class filter)
filter
- a class that serves as filter for selecting filesIterator getFileIterator()
int getSize()
void addFileToBlacklist(IAbstractFile file)
file
- the file to add to the blacklistvoid addBlacklistPattern(String pattern)
pattern
- a regular expression for adding files to the blacklist by namevoid removeFileFromBlacklist(IAbstractFile file)
file
- the file to remove from the blacklistvoid removeBlacklistPattern(String pattern)
pattern
- the pattern to remove form the blacklistboolean isFileInBlacklist(IAbstractFile file)
file
- the file to test