Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
IntelliJFileImpl (IntelliJProjectImpl project, File file) | |
String | getCharset () throws IOException |
InputStream | getContents () throws IOException |
void | setContents (InputStream input, boolean force, boolean keepHistory) throws IOException |
void | create (InputStream input, boolean force) throws IOException |
IPath | getLocation () |
long | getSize () throws IOException |
int | getType () |
void | delete (int updateFlags) throws IOException |
void | move (IPath destination, boolean force) throws IOException |
void | refreshLocal () throws IOException |
Object | getAdapter (Class<?extends IResource > clazz) |
String | toString () |
IDEA implementation of the IFile interface.
FIXME: Remove all hacks regarding absolute files.
de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.IntelliJFileImpl | ( | IntelliJProjectImpl | project, |
File | file | ||
) |
void de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.create | ( | InputStream | input, |
boolean | force | ||
) | throws IOException |
Equivalent to the Eclipse call IFile.create(input, force, null)
Implements de.fu_berlin.inf.dpp.filesystem.IFile.
void de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.delete | ( | int | updateFlags | ) | throws IOException |
Deletes the file using File#delete() and updates the IDE with LocalFileSystem#refreshAndFindFileByIoFile(File).
updateFlags | - is ignored at the moment |
IOException |
Implements de.fu_berlin.inf.dpp.filesystem.IResource.
Object de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getAdapter | ( | Class<?extends IResource > | clazz | ) |
Implements de.fu_berlin.inf.dpp.filesystem.IResource.
String de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getCharset | ( | ) | throws IOException |
Implements de.fu_berlin.inf.dpp.filesystem.IFile.
InputStream de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getContents | ( | ) | throws IOException |
Implements de.fu_berlin.inf.dpp.filesystem.IFile.
IPath de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getLocation | ( | ) |
Implements de.fu_berlin.inf.dpp.filesystem.IFile.
long de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getSize | ( | ) | throws IOException |
Returns the size of the file.
IOException | if an I/O error occurred |
Implements de.fu_berlin.inf.dpp.filesystem.IFile.
int de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getType | ( | ) |
Reimplemented from de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJResourceImpl.
void de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.move | ( | IPath | destination, |
boolean | force | ||
) | throws IOException |
Equivalent to the Eclipse call IResource.delete(destination, force, null)
Implements de.fu_berlin.inf.dpp.filesystem.IResource.
void de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.refreshLocal | ( | ) | throws IOException |
Equivalent to the Eclipse call IResource.refreshLocal(IResource.DEPTH_INFINITE, null)
Implements de.fu_berlin.inf.dpp.filesystem.IResource.
void de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.setContents | ( | InputStream | input, |
boolean | force, | ||
boolean | keepHistory | ||
) | throws IOException |
Equivalent to the Eclipse call IFile.setContents(input, force, keepHistory, null)
Implements de.fu_berlin.inf.dpp.filesystem.IFile.
String de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.toString | ( | ) |