Class ScriptEditorForooRexx
java.lang.Object
com.sun.star.script.framework.provider.oorexx.ScriptEditorForooRexx
- All Implemented Interfaces:
com.sun.star.script.framework.provider.ScriptEditor,ActionListener,EventListener
public class ScriptEditorForooRexx
extends Object
implements com.sun.star.script.framework.provider.ScriptEditor, ActionListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidedit(com.sun.star.script.provider.XScriptContext context, com.sun.star.script.framework.container.ScriptMetaData entry) Opens an editor window for the specified ScriptMetaData.execute()Executes the script edited by the editorstatic ScriptEditorForooRexxReturns the global ScriptEditorForooRexx instance.static ScriptEditorForooRexxGet the ScriptEditorForooRexx instance for this URLReturns the default extension for ooRexx scriptsReturns the template text for ooRexx scriptsgetText()Returns the text being displayed in this ScriptEditorForooRexxvoidindicateErrorLine(int lineNum) Indicates the line where error occuredbooleanReturns whether or not the script source being edited in this ScriptEditorForooRexx has been modifiedvoidsetScriptMetaData(com.sun.star.script.framework.container.ScriptMetaData smd)
-
Method Details
-
getEditor
Returns the global ScriptEditorForooRexx instance. -
getEditor
Get the ScriptEditorForooRexx instance for this URL- Parameters:
url- The URL of the script source file- Returns:
- The ScriptEditorForooRexx associated with the given URL if one exists, otherwise null.
-
isModified
public boolean isModified()Returns whether or not the script source being edited in this ScriptEditorForooRexx has been modified -
getText
Returns the text being displayed in this ScriptEditorForooRexx- Returns:
- The text displayed in this ScriptEditorForooRexx
-
getTemplate
Returns the template text for ooRexx scripts- Specified by:
getTemplatein interfacecom.sun.star.script.framework.provider.ScriptEditor- Returns:
- The template text for ooRexx scripts
-
getExtension
Returns the default extension for ooRexx scripts- Specified by:
getExtensionin interfacecom.sun.star.script.framework.provider.ScriptEditor- Returns:
- The default extension for ooRexx scripts
-
indicateErrorLine
public void indicateErrorLine(int lineNum) Indicates the line where error occured- Specified by:
indicateErrorLinein interfacecom.sun.star.script.framework.provider.ScriptEditor
-
setScriptMetaData
public void setScriptMetaData(com.sun.star.script.framework.container.ScriptMetaData smd) -
execute
Executes the script edited by the editor- Specified by:
executein interfacecom.sun.star.script.framework.provider.ScriptEditor- Throws:
Exception
-
edit
public 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. If an editor window is already open for that data it will be moved to the front.- Specified by:
editin interfacecom.sun.star.script.framework.provider.ScriptEditor- Parameters:
context- The context in which to execute the scriptentry- The metadata describing the script
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-