|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.jcoderz.phoenix.report.SyntaxModeCatalogHandler
public final class SyntaxModeCatalogHandler
Responsible to load the catalog file that bundles the
jEdit mode files.
Inspired by the ModeCatalogHandler that comes with jEdit.
The mode files and the catalog are expected to be packed as
resources with the jEdit class in a modes
package to be found. There s no additional flexibility to
provide own or modified modes files.
Currently with jEdit4.3pre16 there is no way to use a own
ModeProvider to be able to
overload the loadMode(String) method because the
ModeProvider is hard linked in the Mode class. So we can not
use our own XModeHandler and overload error handling there.
Use loadModes() to load the catalog and all modes.
| Method Summary | |
|---|---|
static void |
loadModes()
Load all modes referred by the catalog file provided. |
InputSource |
resolveEntity(String publicId,
String systemId)
Takes care to find the jEdit catalog.dtd. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs)
Handles the mode elements in the catalog and loads the modes listed there. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void loadModes()
public InputSource resolveEntity(String publicId,
String systemId)
resolveEntity in interface EntityResolverresolveEntity in class DefaultHandler
public void startElement(String uri,
String localName,
String qName,
Attributes attrs)
startElement in interface ContentHandlerstartElement in class DefaultHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||