net.sourceforge.squirrel_sql.plugins.syntax.netbeans
Class SyntaxFactory

java.lang.Object
  extended by 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.


Constructor Summary
SyntaxFactory()
           
 
Method Summary
 void addSQLTokenListeners(ISession sess, SQLTokenListener tl)
           
 org.netbeans.editor.Syntax getSyntax(Document doc)
           
 void putDocument(ISession session, NetbeansPropertiesWrapper wrp, Document document)
           
 void putEditorPane(ISession sess, NetbeansSQLEditorPane editor)
           
 void removeSQLTokenListeners(ISession sess, SQLTokenListener tl)
           
 void sessionEnding(ISession sess)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxFactory

public SyntaxFactory()
Method Detail

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-2011. All Rights Reserved.