|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVirtualFileManager
| Field Summary |
|---|
| Fields inherited from interface com.aptana.ide.core.io.sync.ISerializableSyncItem |
|---|
DELIMITER, FILE_DELIMITER, OBJ_DELIMITER, SECTION_DELIMITER, TYPE_DELIMITER |
| Method Summary | |
|---|---|
void |
addCloakedFile(IVirtualFile file)
Sets a file as cloaked |
void |
addCloakExpression(java.lang.String fileExpression)
Sets an expression to cloak all files that match the expression |
void |
connect()
Establish a connection with the file manager |
boolean |
containsFile(IVirtualFile file)
Does this file manager contain this particular file? |
boolean |
createLocalDirectory(IVirtualFile directoryFile)
Creates a new directory within the file manager's file system |
IVirtualFile |
createVirtualDirectory(java.lang.String path)
Creates a new virtual file for the specified directory path. |
IVirtualFile |
createVirtualFile(java.lang.String path)
Creates a new virtual file for this specified path. |
boolean |
deleteFile(IVirtualFile file)
Delete the specified file or directory from the file manager |
void |
disconnect()
Break the connection with the file manager |
IVirtualFile |
getBaseFile()
getBaseFile |
java.lang.String |
getBasePath()
getBasePath |
java.lang.String[] |
getCloakedFileExpressions()
getCloakedFileExpressions |
IVirtualFile[] |
getCloakedFiles()
getCloakedFiles |
java.lang.String |
getDescriptiveLabel()
Returns a descriptive label for use when presenting this file manager |
org.eclipse.swt.graphics.Image |
getDisabledImage()
getIcon |
IVirtualFileManagerEventHandler |
getEventHandler()
getEventHandler |
IVirtualFile[] |
getFiles(IVirtualFile file)
getFiles |
IVirtualFile[] |
getFiles(IVirtualFile file,
boolean recurse,
boolean includeCloakedFiles)
getFiles |
java.lang.String |
getFileSeparator()
Get the string that is used to separate directories and files within a path |
java.lang.String |
getFileTimeString(IVirtualFile file)
Returns the time of the file as a String. |
java.lang.String |
getGroup(IVirtualFile file)
getGroup |
java.lang.String |
getHashString()
Gets a string hash representation of this object. |
long |
getId()
getId |
org.eclipse.swt.graphics.Image |
getImage()
getIcon |
java.lang.String |
getNickName()
Retrieve the name to use when displaying this file manager. |
java.lang.String |
getOwner(IVirtualFile file)
getOwner |
ProtocolManager |
getProtocolManager()
getProtocolManager |
java.io.InputStream |
getStream(IVirtualFile file)
getStream |
long |
getTimeOffset()
getTimeOffset |
boolean |
hasFiles(IVirtualFile file)
Determines if this virtual file contains files |
boolean |
isAutoCalculateServerTimeOffset()
Do we auto-calculate the server time offset |
boolean |
isConnected()
Are we currently connected? |
boolean |
isFileCloaked(IVirtualFile file)
is a file cloaked? |
boolean |
isHidden()
isHidden |
boolean |
isTransient()
isTransient |
boolean |
isValid()
Is the current file manager valid (meaning that the base path is valid) |
boolean |
moveFile(IVirtualFile source,
IVirtualFile destination)
Move the virtual file to a new location |
void |
putStream(java.io.InputStream input,
IVirtualFile targetFile)
putStream |
void |
putToLocalFile(IVirtualFile file,
java.io.File tempFile)
getStream |
void |
refresh()
refresh |
void |
removeCloakedFile(IVirtualFile file)
Remove a file as cloaked |
void |
removeCloakExpression(java.lang.String fileExpression)
Removes an expression to cloak all files that match the expression |
boolean |
renameFile(IVirtualFile file,
java.lang.String newName)
Rename a virtual file |
void |
resetTimeOffsetCache()
Resets the time offset cache |
void |
resolveBasePath()
resolveBasePath |
void |
setAutoCalculateServerTimeOffset(boolean calculateOffset)
Set if we auto-calculate the server time offset |
void |
setBasePath(java.lang.String path)
setBasePath |
void |
setCloakedFiles(IVirtualFile[] files)
setCloakedFiles |
void |
setDisabledImage(org.eclipse.swt.graphics.Image image)
setImage |
void |
setEventHandler(IVirtualFileManagerEventHandler eventHandler)
setEventHandler |
void |
setGroup(IVirtualFile file,
java.lang.String groupName)
setGroup |
void |
setHidden(boolean hidden)
setHidden |
void |
setId(long id)
setId |
void |
setImage(org.eclipse.swt.graphics.Image image)
setImage |
void |
setNickName(java.lang.String nickName)
setNickName |
void |
setOwner(IVirtualFile file,
java.lang.String ownerName)
setOwner |
void |
setTimeOffset(long timeOffset)
Sets the time offset |
void |
setTransient(boolean value)
setTransient |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.aptana.ide.core.io.sync.ISerializableSyncItem |
|---|
fromSerializableString, getType, toSerializableString |
| Method Detail |
|---|
IVirtualFile getBaseFile()
java.lang.String getBasePath()
void setBasePath(java.lang.String path)
path -
void resolveBasePath()
throws ConnectionException,
VirtualFileManagerException
path -
ConnectionException
VirtualFileManagerExceptionjava.lang.String getDescriptiveLabel()
IVirtualFileManagerEventHandler getEventHandler()
void setEventHandler(IVirtualFileManagerEventHandler eventHandler)
eventHandler - IVirtualFile[] getCloakedFiles()
java.lang.String[] getCloakedFileExpressions()
void setCloakedFiles(IVirtualFile[] files)
files - void addCloakedFile(IVirtualFile file)
file - void addCloakExpression(java.lang.String fileExpression)
fileExpression - void removeCloakedFile(IVirtualFile file)
file - void removeCloakExpression(java.lang.String fileExpression)
fileExpression - boolean isFileCloaked(IVirtualFile file)
file -
IVirtualFile[] getFiles(IVirtualFile file)
throws ConnectionException,
java.io.IOException
file - includeCloakedFiles - do we include cloaked files in the list?
ConnectionException
java.io.IOException
IVirtualFile[] getFiles(IVirtualFile file,
boolean recurse,
boolean includeCloakedFiles)
throws ConnectionException,
java.io.IOException
file - recurse - includeCloakedFiles - do we include cloaked files in the list?
ConnectionException
java.io.IOException
boolean hasFiles(IVirtualFile file)
throws ConnectionException,
java.io.IOException
file - The IVirtualFile to check for files against
ConnectionException
java.io.IOExceptionjava.lang.String getFileSeparator()
java.lang.String getFileTimeString(IVirtualFile file)
file -
java.lang.String getGroup(IVirtualFile file)
file -
void setGroup(IVirtualFile file,
java.lang.String groupName)
file - groupName - java.lang.String getHashString()
void setHidden(boolean hidden)
hidden - boolean isHidden()
long getId()
void setId(long id)
id - org.eclipse.swt.graphics.Image getImage()
org.eclipse.swt.graphics.Image getDisabledImage()
void setImage(org.eclipse.swt.graphics.Image image)
image - void setDisabledImage(org.eclipse.swt.graphics.Image image)
image - java.lang.String getNickName()
void setNickName(java.lang.String nickName)
nickName - void setTransient(boolean value)
value - boolean isTransient()
java.lang.String getOwner(IVirtualFile file)
file -
void setOwner(IVirtualFile file,
java.lang.String ownerName)
file - ownerName - ProtocolManager getProtocolManager()
long getTimeOffset()
throws ConnectionException
ConnectionExceptionboolean isConnected()
void connect()
throws ConnectionException
ConnectionExceptionvoid disconnect()
boolean containsFile(IVirtualFile file)
file - The file to check
boolean createLocalDirectory(IVirtualFile directoryFile)
throws ConnectionException,
VirtualFileManagerException
directoryFile - The path to the new directory
ConnectionException
VirtualFileManagerExceptionIVirtualFile createVirtualDirectory(java.lang.String path)
path - The path to the new virtual directory
IVirtualFile createVirtualFile(java.lang.String path)
path - The path to the new virtual file
boolean deleteFile(IVirtualFile file)
throws ConnectionException,
VirtualFileManagerException
file - The virtual file to remove
ConnectionException
VirtualFileManagerException
java.io.InputStream getStream(IVirtualFile file)
throws ConnectionException,
VirtualFileManagerException,
java.io.IOException
file -
ConnectionException
VirtualFileManagerException
java.io.IOException
boolean moveFile(IVirtualFile source,
IVirtualFile destination)
source - The source virtual file to movedestination - The destination location where to move the file
void putStream(java.io.InputStream input,
IVirtualFile targetFile)
throws ConnectionException,
VirtualFileManagerException,
java.io.IOException
input - The input stream containing the data to store in the remote filetargetFile - The remote file where to store the data from the input stream
ConnectionException
VirtualFileManagerException
java.io.IOException
void putToLocalFile(IVirtualFile file,
java.io.File tempFile)
throws ConnectionException,
VirtualFileManagerException
file - tempFile -
ConnectionException
VirtualFileManagerExceptionvoid refresh()
boolean renameFile(IVirtualFile file,
java.lang.String newName)
throws ConnectionException,
VirtualFileManagerException
file - The virtual file to renamenewName - The new name for the file
ConnectionException
VirtualFileManagerExceptionvoid setTimeOffset(long timeOffset)
timeOffset - void resetTimeOffsetCache()
void setAutoCalculateServerTimeOffset(boolean calculateOffset)
calculateOffset - do we calculate the offsetboolean isAutoCalculateServerTimeOffset()
boolean isValid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||