net.sourceforge.squirrel_sql.plugins.syntax.netbeans
Class SyntaxFactory
java.lang.Object
net.sourceforge.squirrel_sql.plugins.syntax.netbeans.SyntaxFactory
public class SyntaxFactory
- extends Object
This class is used in the SQLKit.createSyntax() method.
In this method the right SQLSyntax object initialized
with the right session must be returned because
usually different sessions have different key words, tables, ...
The only key we are given in SQLKit.createSyntax() is the document
of the JEditorPane of the session. This class provides the mapping
of document to session. This mapping is initialized through the
calls of putEditorPane() and putDocument() in the constructor of
NetbeansSQLEditorPane.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyntaxFactory
public SyntaxFactory()
getSyntax
public org.netbeans.editor.Syntax getSyntax(Document doc)
addSQLTokenListeners
public void addSQLTokenListeners(ISession sess,
SQLTokenListener tl)
removeSQLTokenListeners
public void removeSQLTokenListeners(ISession sess,
SQLTokenListener tl)
putEditorPane
public void putEditorPane(ISession sess,
NetbeansSQLEditorPane editor)
putDocument
public void putDocument(ISession session,
NetbeansPropertiesWrapper wrp,
Document document)
sessionEnding
public void sessionEnding(ISession sess)
Copyright © 2001-2010. All Rights Reserved.