public class XmlActions
extends java.lang.Object
Constructor and Description |
---|
XmlActions() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
charactersToEntities(java.lang.String s,
java.util.Map hash) |
static void |
charactersToEntities(org.gjt.sp.jedit.View view) |
static void |
completeClosingTag(org.gjt.sp.jedit.View view,
boolean insertSlash) |
static void |
copyXPath(org.gjt.sp.jedit.View view) |
static java.lang.String |
entitiesToCharacters(java.lang.String s,
java.util.Map hash) |
static void |
entitiesToCharacters(org.gjt.sp.jedit.View view) |
static void |
generateDTD(org.gjt.sp.jedit.View view) |
static java.lang.String |
getStandaloneEnd() |
static void |
insertClosingTag(org.gjt.sp.jedit.View view) |
static void |
insertClosingTagKeyTyped(org.gjt.sp.jedit.View view) |
static void |
join(org.gjt.sp.jedit.View view)
If inside a HTML or XML, join attributes and tagname all on one line.
|
static void |
matchTag(org.gjt.sp.jedit.textarea.JEditTextArea textArea) |
static void |
openSchema(org.gjt.sp.jedit.View view) |
static void |
removeTags(org.gjt.sp.jedit.Buffer buffer) |
static void |
selectBetweenTags(org.gjt.sp.jedit.textarea.JEditTextArea textArea)
Selects content of an element, can be called repeatedly
|
static void |
selectElement(org.gjt.sp.jedit.textarea.JEditTextArea textArea)
Selects whole element, can be called repeatedly to select
parent element of selected element.
|
static TagParser.Tag |
selectTag(org.gjt.sp.jedit.textarea.JEditTextArea textArea)
Selects tag at caret.
|
static void |
showEditTagDialog(org.gjt.sp.jedit.View view) |
static void |
showEditTagDialog(org.gjt.sp.jedit.View view,
java.lang.String elementName,
ElementDecl elementDecl,
org.gjt.sp.jedit.textarea.Selection insideTag,
NamespaceBindings namespaces,
NamespaceBindings namespacesToInsert,
boolean reallyShowEditTagDialog)
show EditTagDialog in order to insert open and close tags or edit current tag
|
static void |
split(org.gjt.sp.jedit.View view)
If inside a tag, calls splitTagAtCaret.
|
static void |
splitTag(TagParser.Tag tag,
org.gjt.sp.jedit.textarea.JEditTextArea textArea,
java.lang.CharSequence text)
Splits tag at caret, so that attributes are on separate lines.
|
static void |
xmlMatchTag(org.gjt.sp.jedit.textarea.JEditTextArea textArea) |
public static void showEditTagDialog(org.gjt.sp.jedit.View view)
public static void showEditTagDialog(org.gjt.sp.jedit.View view, java.lang.String elementName, ElementDecl elementDecl, org.gjt.sp.jedit.textarea.Selection insideTag, NamespaceBindings namespaces, NamespaceBindings namespacesToInsert, boolean reallyShowEditTagDialog)
view
- current viewelementName
- qualified element name to insertelementDecl
- element to insert (may not be null)insideTag
- Selection of the current start tag (or part of, for instance inf XmlCompletion, what has been already typed)namespaces
- namespace bindings in scope for current location (not those declared inside the start tag itself)namespacesToInsert
- namespace bindings that will have to be inserted at the end of the start tagreallyShowEditTagDialog
- false to disable showing the dialog at all, but insert the start and end tags nonethelesspublic static void insertClosingTag(org.gjt.sp.jedit.View view)
public static void splitTag(TagParser.Tag tag, org.gjt.sp.jedit.textarea.JEditTextArea textArea, java.lang.CharSequence text)
public static void join(org.gjt.sp.jedit.View view)
public static void split(org.gjt.sp.jedit.View view)
public static void removeTags(org.gjt.sp.jedit.Buffer buffer)
public static void matchTag(org.gjt.sp.jedit.textarea.JEditTextArea textArea)
public static void xmlMatchTag(org.gjt.sp.jedit.textarea.JEditTextArea textArea)
public static void selectElement(org.gjt.sp.jedit.textarea.JEditTextArea textArea)
public static TagParser.Tag selectTag(org.gjt.sp.jedit.textarea.JEditTextArea textArea)
public static void selectBetweenTags(org.gjt.sp.jedit.textarea.JEditTextArea textArea)
public static void insertClosingTagKeyTyped(org.gjt.sp.jedit.View view)
public static void completeClosingTag(org.gjt.sp.jedit.View view, boolean insertSlash)
public static java.lang.String charactersToEntities(java.lang.String s, java.util.Map hash)
public static void charactersToEntities(org.gjt.sp.jedit.View view)
public static java.lang.String entitiesToCharacters(java.lang.String s, java.util.Map hash)
public static void entitiesToCharacters(org.gjt.sp.jedit.View view)
public static java.lang.String getStandaloneEnd()
public static void generateDTD(org.gjt.sp.jedit.View view)
public static void openSchema(org.gjt.sp.jedit.View view)
public static void copyXPath(org.gjt.sp.jedit.View view)