org.autoplot.jythonsupport.ui.ScriptPanelSupport

ScriptPanelSupport( org.autoplot.jythonsupport.ui.EditorTextPane editor )


PROP_DIRTY


PROP_FILE


addCaretLabel

addCaretLabel( javax.swing.JLabel caretPositionLabel ) → void

used by script panel.

Parameters

caretPositionLabel - a JLabel

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


addFileLabel

addFileLabel( javax.swing.JLabel fileNameLabel ) → void

used by the script panel.

Parameters

fileNameLabel - a JLabel

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


addPropertyChangeListener

addPropertyChangeListener( java.beans.PropertyChangeListener listener ) → void

Parameters

listener - a PropertyChangeListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


annotateError

annotateError( PyException ex, int offset ) → void

mark the error in the editor by looking at the python exception to get the line number.

Parameters

ex - the python exception
offset - line offset from beginning of file where execution began.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


annotatePatch

annotatePatch( com.github.difflib.patch.Patch patch ) → void

show insertions and deletions. Bad locations will be reflected on stderr, and are not verified here.

Parameters

patch - patch generated by DiffUtils

Returns:

void (returns nothing)

See Also:

DiffUtils


[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFile

getFile( ) → File

Returns:

java.io.File

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isDirty

isDirty( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


loadFile

loadFile( java.io.File file ) → void

Parameters

file - a File

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


removePropertyChangeListener

removePropertyChangeListener( java.beans.PropertyChangeListener listener ) → void

Parameters

listener - a PropertyChangeListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setDirty

setDirty( boolean dirty ) → void

Parameters

dirty - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setFile

setFile( java.io.File file ) → void

Parameters

file - a File

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setReadOnly

setReadOnly( ) → void

set the save status to read only.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]