|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Title: $FileName: GUIContext.java$
Method Summary | |
void |
displayErrorMessage(java.lang.String message)
Defaults eventThread to false . |
void |
displayErrorMessage(java.lang.String[] message)
Defaults eventThread to false . |
void |
displayErrorMessage(java.lang.String[] message,
boolean eventThread)
Displays the message in an error dialog. |
void |
displayErrorMessage(java.lang.String message,
boolean eventThread)
Displays the message in an error dialog. |
SourceVersionChecker |
getChecker(java.io.File flDirectory)
Returns a SourceVersionChecker for the specified directory. |
int |
getClientDefaultEOLType()
Gets the default EOL type for the client from AppConfig. |
ProjectTreeNode |
getCurrentTreeNode()
Returns the currently selected project tree node. |
java.lang.String |
getCurrentUserName()
Returns the currently logged in user's user name as a String. |
SJPrimaryWindow |
getMainWindow()
Returns a reference to the main GUI window. |
java.io.PrintStream |
getMessageStream()
Returns the PrintStream that prints out to the message area on the GUI. |
javax.swing.JTable |
getPrimaryTable()
Returns a reference to the file table. |
javax.swing.table.TableColumnModel |
getPrimaryTableColumnModel()
Returns the TableColumnModel of the file table. |
javax.swing.JTree |
getProjectTree()
Returns a reference to the project tree. |
java.lang.String[] |
getSelectedFileNames()
Returns names of all files selected in the file table. |
org.sourcejammer.project.view.NodeInfo |
getSelectedFileNodeInfo()
Convenience method. |
org.sourcejammer.project.view.NodeInfo[] |
getSelectedFilesNodeInfo()
Returns a NodeInfo object for each file selected in the file table. Note that NodeInfo can be case to FileNodeInfo if you need to figure out local/remote sync state. |
boolean |
hasLocalFileChanged(java.lang.String fileName,
java.io.File flTargetDir)
Returns true if the file with the name fileName in flTargetDir
has changed in the archive since that file was last downloaded to the client. |
boolean |
isConnected()
Returns true if the GUI is currently connected to an archive. |
void |
rebuildFileView()
Rebuilds the cached file tables starting at the currently selected project tree node. |
void |
rebuildFileView(boolean fromRoot)
Rebuilds the cached file tables. |
void |
selectProject(ProjectTreeNode nd)
Select the specified project in the project tree. |
Method Detail |
public SJPrimaryWindow getMainWindow()
public javax.swing.JTree getProjectTree()
public javax.swing.JTable getPrimaryTable()
public void displayErrorMessage(java.lang.String message, boolean eventThread)
message
- -- the error message.eventThread
- -- must be true
if invoked from the eventThread,
and false otherwise. This is tricky. BEFORE_EVENT and AFTER_EVENT timing are
in the event thread. BEFORE_REQUEST_SENT and AFTER_RESPONSE_RECEIVED are
generally outside of the event thread, but not always.public void displayErrorMessage(java.lang.String[] message, boolean eventThread)
message
- -- the error message.eventThread
- -- must be true
if invoked from the eventThread,
and false otherwise. This is tricky. BEFORE_EVENT and AFTER_EVENT timing are
in the event thread. BEFORE_REQUEST_SENT and AFTER_RESPONSE_RECEIVED are
generally outside of the event thread, but not always.public void displayErrorMessage(java.lang.String[] message)
false
.
public void displayErrorMessage(java.lang.String message)
false
.
public void selectProject(ProjectTreeNode nd)
public boolean isConnected()
true
if the GUI is currently connected to an archive.
public SourceVersionChecker getChecker(java.io.File flDirectory) throws java.io.IOException
java.io.IOException
public int getClientDefaultEOLType()
public java.io.PrintStream getMessageStream()
public ProjectTreeNode getCurrentTreeNode()
public java.lang.String getCurrentUserName()
public javax.swing.table.TableColumnModel getPrimaryTableColumnModel()
public java.lang.String[] getSelectedFileNames()
public org.sourcejammer.project.view.NodeInfo getSelectedFileNodeInfo()
public org.sourcejammer.project.view.NodeInfo[] getSelectedFilesNodeInfo()
public boolean hasLocalFileChanged(java.lang.String fileName, java.io.File flTargetDir) throws java.io.IOException
true
if the file with the name fileName in flTargetDir
has changed in the archive since that file was last downloaded to the client.
java.io.IOException
public void rebuildFileView() throws org.sourcejammer.project.NodeExistsException, java.io.IOException
org.sourcejammer.project.NodeExistsException
java.io.IOException
public void rebuildFileView(boolean fromRoot) throws org.sourcejammer.project.NodeExistsException, java.io.IOException
fromRoot
- -- if true
starts rebuilding from archive root
project.
org.sourcejammer.project.NodeExistsException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |