public class ScriptEditorForooRexx
extends java.lang.Object
implements com.sun.star.script.framework.provider.ScriptEditor, java.awt.event.ActionListener
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
edit(com.sun.star.script.provider.XScriptContext context,
com.sun.star.script.framework.container.ScriptMetaData entry)
Opens an editor window for the specified ScriptMetaData.
|
java.lang.Object |
execute()
Executes the script edited by the editor
|
static ScriptEditorForooRexx |
getEditor()
Returns the global ScriptEditorForooRexx instance.
|
static ScriptEditorForooRexx |
getEditor(java.net.URL url)
Get the ScriptEditorForooRexx instance for this URL
|
java.lang.String |
getExtension()
Returns the default extension for ooRexx scripts
|
java.lang.String |
getTemplate()
Returns the template text for ooRexx scripts
|
java.lang.String |
getText()
Returns the text being displayed in this ScriptEditorForooRexx
|
void |
indicateErrorLine(int lineNum)
Indicates the line where error occured
|
boolean |
isModified()
Returns whether or not the script source being edited in this
ScriptEditorForooRexx has been modified
|
void |
setScriptMetaData(com.sun.star.script.framework.container.ScriptMetaData smd) |
public static ScriptEditorForooRexx getEditor()
public static ScriptEditorForooRexx getEditor(java.net.URL url)
url - The URL of the script source filepublic boolean isModified()
public java.lang.String getText()
public java.lang.String getTemplate()
getTemplate in interface com.sun.star.script.framework.provider.ScriptEditorpublic java.lang.String getExtension()
getExtension in interface com.sun.star.script.framework.provider.ScriptEditorpublic void indicateErrorLine(int lineNum)
indicateErrorLine in interface com.sun.star.script.framework.provider.ScriptEditorpublic void setScriptMetaData(com.sun.star.script.framework.container.ScriptMetaData smd)
public java.lang.Object execute()
throws java.lang.Exception
execute in interface com.sun.star.script.framework.provider.ScriptEditorjava.lang.Exceptionpublic void edit(com.sun.star.script.provider.XScriptContext context,
com.sun.star.script.framework.container.ScriptMetaData entry)
edit in interface com.sun.star.script.framework.provider.ScriptEditorcontext - The context in which to execute the scriptentry - The metadata describing the scriptpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener