Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl:
de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJResourceImpl de.fu_berlin.inf.dpp.filesystem.IFile de.fu_berlin.inf.dpp.filesystem.IResource de.fu_berlin.inf.dpp.filesystem.IResource

List of all members.

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 ()

Detailed Description

IDEA implementation of the IFile interface.

FIXME: Remove all hacks regarding absolute files.


Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.IntelliJFileImpl ( IntelliJProjectImpl  project,
File  file 
)

Member Function Documentation

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).

Parameters:
updateFlags- is ignored at the moment
Exceptions:
IOException

Implements de.fu_berlin.inf.dpp.filesystem.IResource.

Object de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getAdapter ( Class<?extends IResource clazz)
String de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getCharset ( ) throws IOException
InputStream de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getContents ( ) throws IOException
IPath de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getLocation ( )
long de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getSize ( ) throws IOException

Returns the size of the file.

Returns:
the size of the file in bytes
Exceptions:
IOExceptionif an I/O error occurred

Implements de.fu_berlin.inf.dpp.filesystem.IFile.

int de.fu_berlin.inf.dpp.intellij.project.filesystem.IntelliJFileImpl.getType ( )
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 ( )
 All Classes Namespaces Files Functions Variables Enumerations