Package jsyntaxpane.actions
package jsyntaxpane.actions
-
ClassDescriptionVarious utility methods to work on JEditorPane and its SyntaxDocument for use by ActionsThis class can be used to display the caret location in friendly manner for an EditorPane.ComboBox like Completion Action: This will display a list of items to choose from, it can be used similar to IntelliSense.This action will try to complete the word at the cursor by looking for a matching word in this document that starts with the same letters.The DefaultSyntaxAction.This Action deletes the current line, or all the highlighted lines.Data that is shared by Find / Replace and Find Next actions for a Document The data here will be added as a property of the Document using the key PROPERTY_KEY.This Action duplicates the current line, or all the highlighted lines.This class performs a Find Next operation by using the current patternFinder class.This actions displays the GotoLine dialogShow an HTML Preview window.IndentAction is used to replace Tabs with spaces.This class should be mapped to VK_ENTER.This actions Jumps to the pair of the token at the cursor.Completion Actions: All completions are based on a simple String to String Map.A Pair action inserts a pair of characters (left and right) around the current selection, and then places the caret between them The pairs are hard-coded here.Redo actionComboBox like Completion Action: This will display a list of items to choose from, its can be used similar to IntelliSenseThis class executes a script every time it is called.Executes the script in the component's text using a ScriptEngine The Configuration must contain the key [prefix.]ACTION_NAME.ScriptExtension and its value is the ScriptExtension that getEngineByExtension returns If no engine is found, then an option is given to the user to disable the actionDisplay all abbreviations for a JTextComponent., if it has any.All JSyntaxPane Keyboard related actions implement this class.This action replaces the selection with the configured template in the config ACTION-NAME.Template There are two kinds of templates: Simple Templates are replaced as is Whole Line Templates will ensure a whole line is selected.This action will toggle comments on or off on selected whole lines.This Action will Toggle any SyntaxComponents on the EditorPane You need the configuration Key prefix.ACTION_NAME.Component = componentclassname Where: ACTION_NAME is the name given to the action (prefix.Action.ACTION_NAME) componentclassname is the fully qualified class name of the componentUndo actionThis is usually mapped to Shift-TAB to unindent the selection.Attempt to prettify an XML document.Completes an the Tag.