public class ScriptPanelSupport
extends java.lang.Object
EditorAnnotationsSupport| Modifier and Type | Class and Description |
|---|---|
protected class |
ScriptPanelSupport.MyOutputStream |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_INTERRUPTABLE |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener) |
void |
annotateError(PyException ex,
int offset,
PythonInterpreter interp)
Annotate the error.
|
void |
annotateError(java.lang.Throwable ex)
march through the stack trace looking for any Jython references.
|
protected void |
executeScript() |
protected void |
executeScript(boolean trace)
allow execute with trace.
|
protected void |
executeScript(int mode)
Execute the script.
|
InteractiveInterpreter |
getInterruptible()
return the interruptible InteractiveInterpreter that runs the script.
|
int |
getSaveFile()
get the save file name with a save file dialog.
|
protected void |
loadFile(java.io.File file) |
protected void |
loadInputStream(java.io.InputStream in) |
protected void |
newScript() |
protected void |
open() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener) |
protected int |
save()
save the editor contents to a file.
|
protected int |
saveAs()
returns JFileChooser.APPROVE_OPTION or JFileChooser.CANCEL_OPTION
|
public static final java.lang.String PROP_INTERRUPTABLE
public int getSaveFile()
throws java.io.IOException
java.io.IOExceptionJFileChooser.showSaveDialog(java.awt.Component)protected int save()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionprotected void loadFile(java.io.File file)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOExceptionjava.io.FileNotFoundExceptionprotected void loadInputStream(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic void annotateError(java.lang.Throwable ex)
ex - the exceptionpublic void annotateError(PyException ex,
int offset,
PythonInterpreter interp)
ex - the exceptionoffset - line offset from beginning of file where execution began.interp - null or the interp for further queries.protected void executeScript()
protected void executeScript(boolean trace)
trace - protected void executeScript(int mode)
mode - =0 normal. =2=CTRL_MASK= trace. ALT_MASK is enter editor. SHIFT_MASK brings up parameters GUI.protected int saveAs()
protected void newScript()
protected void open()
public InteractiveInterpreter getInterruptible()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)