|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.ui.BasicUIAdapter | +--com.bluemarsh.jswat.ui.GraphicalAdapter
Class GraphicalAdapter connects the Session with the user interface
of JSwat. It builds out the major interface components, connects
them to the Session and managers, and handles some user input.
This subclass of the UIAdapter
class builds out a
graphical interface made up of JFC components.
Inner Class Summary | |
protected class |
GraphicalAdapter.FrameListener
Class to listen to internal frames for closure. |
Field Summary | |
protected javax.swing.JSplitPane |
bottomSplitter
Bottom horizontal window splitter. |
protected javax.swing.JDesktopPane |
desktopPane
Desktop pane which holds the source file views. |
protected GraphicalAdapter.FrameListener |
frameListener
Object for listening to the internal frames. |
protected GraphicalInputAdapter |
inputAdapter
Handles the intput to the debuggee VM. |
protected MainWindow |
mainWindow
Top-most frame that contains everything. |
protected GraphicalMessageAdapter |
messageAdapter
Handles the status log display. |
protected java.util.Hashtable |
openFiles
Table of open files. |
protected java.util.Hashtable |
openViews
Table of open views. |
protected java.util.Hashtable |
openWindows
Table of open windows. |
protected Session |
ourSession
Session we are associated with. |
protected GraphicalOutputAdapter |
outputAdapter
Handles the output from the debuggee VM. |
protected java.util.List |
panelList
List of all panels we've created. |
protected com.bluemarsh.jswat.ui.GraphicalSourceRefresher |
sourceRefresher
Source view refresher. |
protected Log |
statusLog
Log to which messages are printed. |
protected javax.swing.JSplitPane |
topSplitter
Top horizontal window splitter. |
protected javax.swing.JSplitPane |
vertSplitter
Vertical window splitter. |
Fields inherited from class com.bluemarsh.jswat.ui.BasicUIAdapter |
propertyTable |
Constructor Summary | |
GraphicalAdapter(Session session)
Constructs a GraphicalAdapter, connected to the given Session. |
Method Summary | |
protected void |
buildBreakpoints(javax.swing.JTabbedPane tabbedPane)
Create the panel to contain the breakpoints panel. |
protected void |
buildCommand(javax.swing.JTabbedPane tabbedPane)
Create the panel to contain the message panel and command input fields. |
void |
buildInterface()
Construct the appropriate user interface and connect all the pieces together. |
protected void |
buildStandard(javax.swing.JTabbedPane tabbedPane)
Create the panel to contain the stdout, stderr, and stdin fields. |
boolean |
canFindString()
Indicate if this interface adapter has the ability to find a string in the currently selected source view. |
boolean |
canShowFile()
Indicate if this interface adapter has the ability to show source files in a manner appropriate for the user to read. |
boolean |
canShowStatus()
Indicate if this interface adapter has the ability to show the status in a manner appropriate for the user to view. |
void |
configurationChanged()
Invoked when the configuration has been accepted by the user. |
void |
destroyInterface()
Deconstruct the user interface such that all components are made invisible and prepared for non-use. |
void |
exit()
This is called when there are no more open Sessions. |
boolean |
findString(java.lang.String query,
boolean ignoreCase)
Search for the given string in the currently selected source view. |
JSwatView |
getSelectedView()
Retrieves the currently active view in JSwat. |
void |
initComplete()
Called when the Session initialization has completed. |
void |
refreshDisplay()
Refresh the display to reflect changes in the program. |
void |
saveSettings()
Save any settings to the appropriate places, the program is about the terminate. |
protected void |
setPreferences()
Use the configured preferences to modify our interface. |
boolean |
showFile(java.io.File file,
int line)
Show the given file in the appropriate view and make the given line visible in that view. |
void |
showStatus(java.lang.String status)
Show a status message in a reasonable location. |
Methods inherited from class com.bluemarsh.jswat.ui.BasicUIAdapter |
getProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Session ourSession
protected Log statusLog
protected MainWindow mainWindow
protected javax.swing.JSplitPane topSplitter
protected javax.swing.JSplitPane bottomSplitter
protected javax.swing.JSplitPane vertSplitter
protected javax.swing.JDesktopPane desktopPane
protected GraphicalMessageAdapter messageAdapter
protected GraphicalOutputAdapter outputAdapter
protected GraphicalInputAdapter inputAdapter
protected com.bluemarsh.jswat.ui.GraphicalSourceRefresher sourceRefresher
protected java.util.Hashtable openFiles
protected java.util.Hashtable openWindows
protected java.util.Hashtable openViews
protected GraphicalAdapter.FrameListener frameListener
protected java.util.List panelList
Constructor Detail |
public GraphicalAdapter(Session session)
session
- Session we are associated with.Method Detail |
protected void buildBreakpoints(javax.swing.JTabbedPane tabbedPane)
tabbedPane
- Tabbed pane to add command panel to.protected void buildCommand(javax.swing.JTabbedPane tabbedPane)
tabbedPane
- Tabbed pane to add command panel to.public void buildInterface()
buildInterface
in class BasicUIAdapter
protected void buildStandard(javax.swing.JTabbedPane tabbedPane)
tabbedPane
- Tabbed pane to add command panel to.public boolean canFindString()
canFindString
in class BasicUIAdapter
public boolean canShowFile()
canShowFile
in class BasicUIAdapter
public boolean canShowStatus()
canShowStatus
in class BasicUIAdapter
public void configurationChanged()
configurationChanged
in interface com.bluemarsh.config.ConfigureListener
public void destroyInterface()
destroyInterface
in class BasicUIAdapter
public void exit()
exit
in class BasicUIAdapter
public boolean findString(java.lang.String query, boolean ignoreCase) throws NoOpenViewException
findString
in class BasicUIAdapter
query
- string to look for.ignoreCase
- true to ignore case.NoOpenViewException
- Thrown if there is no view to be searched.public JSwatView getSelectedView()
getSelectedView
in class BasicUIAdapter
public void initComplete()
initComplete
in class BasicUIAdapter
public void refreshDisplay()
refreshDisplay
in class BasicUIAdapter
public void saveSettings()
saveSettings
in class BasicUIAdapter
protected void setPreferences()
public boolean showFile(java.io.File file, int line)
showFile
in class BasicUIAdapter
file
- file to be displayed.line
- line to be made visible.public void showStatus(java.lang.String status)
showStatus
in class BasicUIAdapter
status
- message to be shown to the user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |