01: package net.sourceforge.squirrel_sql.plugins.syntax.netbeans;
02:
03: import org.netbeans.editor.Syntax;
04: import org.netbeans.editor.ext.ExtKit;
05:
06: import javax.swing.text.Document;
07:
08: public class SQLKit extends ExtKit {
09: private SyntaxFactory _syntaxFactory;
10:
11: // public static final String duplicateLineAction = "duplicate-line-action";
12:
13: public SQLKit(SyntaxFactory syntaxFactory) {
14: _syntaxFactory = syntaxFactory;
15: }
16:
17: /**
18: * Create new instance of syntax coloring scanner
19: *
20: * @param doc document to operate on. It can be null in the cases the syntax
21: * creation is not related to the particular document
22: */
23: public Syntax createSyntax(Document doc) {
24: return _syntaxFactory.getSyntax(doc);
25: }
26:
27: // protected Action[] createActions()
28: // {
29: // Action[] javaActions = new Action[]
30: // {
31: // new NetbeansDuplicateLineAction(),
32: // };
33: // return TextAction.augmentList(super.createActions(), javaActions);
34: // }
35:
36: }
|