ProjectExplorer API for Project Access
The ProjectExplorer API allows to access files of the project in which the adapter is called.
Method | Description |
|---|---|
String getProjectName() | Returns the project name |
LocalDateTime getLastModifiedTime(ProjectPath path) | Returns the file's last modification date |
InputStream read(ProjectPath path) | Returns the files content as input stream |
List<ProjectPath> getProjectContent() | Returns all files as project paths |
void write(ProjectPath path, InputStream inputStream) | Writes the data stream to the specified position and creates a new file, if the project type's rules allow it |
boolean exists(ProjectPath path) | Checks whether the file or folder exists |
void create(ProjectPath path) | Creates a directory |
void delete(ProjectPath path) | Deletes a directory or a file |
void move(ProjectPath sourcePath, ProjectPath targetPath) | Moves a file or directory to the specified location according to the project type's rules |
void copy(ProjectPath sourcePath, ProjectPath targetPath) | Copies a file or directory to the specified location according to the project type's rules |
List<ProjectPath> getFolderContent(ProjectPath folderPath) | Returns all paths within the folder and all subfolders |