xml
Class XmlActions
java.lang.Object
xml.XmlActions
- public class XmlActions
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlActions
public XmlActions()
showEditTagDialog
public static void showEditTagDialog(View view)
showEditTagDialog
public static void showEditTagDialog(View view,
ElementDecl elementDecl,
int offsetStart,
int offsetEnd)
insertClosingTag
public static void insertClosingTag(View view)
split
public static void split(View view)
- If the DTD allows this tag to be split, split at the cursor.
Note that this can be used to do a kind of 'fast-editing', eg when
editing an HTML <p> this will insert an end tag (if necessary)
and then place the cursor inside a new <p>.
TODO: Syntax Checking
removeTags
public static void removeTags(Buffer buffer)
matchTag
public static void matchTag(JEditTextArea textArea)
insertClosingTagKeyTyped
public static void insertClosingTagKeyTyped(View view)
completeClosingTag
public static void completeClosingTag(View view,
boolean insertSlash)
charactersToEntities
public static java.lang.String charactersToEntities(java.lang.String s,
java.util.Map hash)
entitiesToCharacters
public static java.lang.String entitiesToCharacters(java.lang.String s,
java.util.Map hash)
charactersToEntities
public static void charactersToEntities(View view)
entitiesToCharacters
public static void entitiesToCharacters(View view)
getStandaloneEnd
public static java.lang.String getStandaloneEnd()