|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--com.enderak.procol.common.util.EnhancedObservable | +--com.enderak.procol.common.model.ProColProject | +--com.enderak.procol.client.model.ProColClientProject
The project representation on the client side, namely, it keeps track of files and buffers that are currently open by the client
Field Summary |
Fields inherited from class com.enderak.procol.common.model.ProColProject |
downloadingFiles, j, name, NUM_VERSIONS, projectDir, projectFilesDir, projectFilesRootNode, projectFilesURI, projectURI |
Constructor Summary | |
ProColClientProject(java.net.URI projectURIIn,
java.lang.String name)
Create a new project |
Method Summary | |
void |
addBuffer(org.gjt.sp.jedit.Buffer bufferIn)
Adds a buffer to the open buffers list |
void |
addModifiedBuffer(org.gjt.sp.jedit.Buffer bufferIn)
Adds a buffer to the modified buffers list |
void |
addToTree(byte[] dataIn)
Adds a file or directory to the tree |
void |
addTree(byte[] dataIn)
Creates a complete tree based on data from the server |
void |
close()
Closes the project - closes all open buffers, initiating check-in of files |
ProColFile |
getFileForBuffer(org.gjt.sp.jedit.Buffer bufferIn)
Returns the ProColFile associated with a buffer |
boolean |
isModifiedBuffer(org.gjt.sp.jedit.Buffer bufferIn)
Checks if a buffer that is checked out has been modified by the client |
boolean |
isOpenBuffer(org.gjt.sp.jedit.Buffer bufferIn)
Checks if a buffer that is checked out is currently opened by the client |
void |
readyForDownload(java.net.URI fileURI,
java.net.URI destURI)
Gets a file ready to be downloaded by the client |
void |
removeBuffer(org.gjt.sp.jedit.Buffer bufferIn)
Removes a buffer from both the open buffers and modified buffers lists |
void |
updateFileInfo(byte[] dataIn)
Updates the info for a file |
void |
writeAndOpenFile(java.lang.String filePath,
byte[] dataIn)
Writes a file to the disk and opens it in jEdit |
Methods inherited from class com.enderak.procol.common.model.ProColProject |
createFile, createFile, getFileInTree, getFileInTree, getName, getNodeForFile, getNodeForFile, getProjectFilesRootNode, getProjectFilesURI, getProjectURI, printTree, writeFile |
Methods inherited from class com.enderak.procol.common.util.EnhancedObservable |
forceNotify, forceNotify |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProColClientProject(java.net.URI projectURIIn, java.lang.String name)
projectURIIn
- The base URI for the projectname
- The name of the projectMethod Detail |
public boolean isOpenBuffer(org.gjt.sp.jedit.Buffer bufferIn)
bufferIn
- The buffer to check
public boolean isModifiedBuffer(org.gjt.sp.jedit.Buffer bufferIn)
bufferIn
- The buffer to check
public void addTree(byte[] dataIn)
dataIn
- The tree informationpublic void addBuffer(org.gjt.sp.jedit.Buffer bufferIn)
bufferIn
- The bufferpublic void addModifiedBuffer(org.gjt.sp.jedit.Buffer bufferIn)
bufferIn
- The bufferpublic void updateFileInfo(byte[] dataIn)
dataIn
- the updated data from the serverpublic void close()
public ProColFile getFileForBuffer(org.gjt.sp.jedit.Buffer bufferIn)
bufferIn
- The buffer
public void removeBuffer(org.gjt.sp.jedit.Buffer bufferIn)
bufferIn
- Description of the Parameterpublic void readyForDownload(java.net.URI fileURI, java.net.URI destURI)
fileURI
- The path of the file within the ProCol TreedestURI
- The path to store the file on the hard drivepublic void writeAndOpenFile(java.lang.String filePath, byte[] dataIn)
dataIn
- The file datafilePath
- the file path to write the data topublic void addToTree(byte[] dataIn)
dataIn
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |