JinSitu - Interactive introspection environment for Java and Jython.
The application includes a JScrapbook for evaluating jython code and a
component for exploring an object tree. As you navigate through java classes
and methods the corresponding javadoc is displayed.
Evaluate your jython code using three different ways:
CTRL+Return : Evaluate current line (inserts newline, like Interpreter)
SHIFT+Return : Evaluate current selection
CTRL+SHIFT+Return : Evaluate complete buffer
Press 'F5' to update the object tree display.
Embed JinSitu in your application like follows (adapt to your needs):
#-------------------------
my_locals = { 'p': p, 'graph': graph }
# doc_url = "file:///D:/Programme/jdk1.3.1_01/docs/api/" # windows path
# doc_url = "file:///home/mkrause/j/jdk1.3.1_01/docs/api/" # unix path
# doc_url = "http://java.sun.com/j2se/1.3/docs/api/" # http
doc_url = { # multiple doc paths using class prefixes
'default' : "file:///D:/Programme/jdk1.3.1_01/docs/api/",
'javax.mail' : "file:///C:/j2sdkee1.3.1/doc/api/"
}
from jinsitu.JinSitu import JinSituApp
js = JinSituApp(locals=my_locals, doc_url=doc_url)
js.show_in_frame(size=(1260, 950), exitOnClose=1)
#-------------------------
This example is from the included Graph.py which is the example in Demo\awt
from the jython distribution enhanced with JinSitu.
NOTES
- a bigger jython example instead of Graph.py is needed to demonstrate
the JinSitu features.
HISTORY
0.3 improved speed of tree view
values of protected and private fields are displayed
changes in the local namespace are immediately displayed in the tree view
tree view remembers expanded nodes on refresh and update
fixed evaluation of multiple dependend code lines
fixed refresh of the tree view for JDK 1.4
0.2 feature multiple doc paths (Brad Clements)
0.1 initial release to the public
CREDITS
The icons are used with permission from Karmira's Bugseeker2.
WEB SITE
http://www.krause-software.de/jinsitu/
AUTHOR
Michael Krause