01: package net.sourceforge.squirrel_sql.plugins.codecompletion.completionfunctions;
02:
03: import net.sourceforge.squirrel_sql.plugins.codecompletion.CodeCompletionInfo;
04:
05: public class TestCompletionFunction extends CodeCompletionFunction {
06: public String getCompareString() {
07: return "#gwa";
08: }
09:
10: public String getCompletionString() {
11: return "#gwa,<table>";
12: }
13:
14: public String toString() {
15: return getCompletionString() + " test";
16: }
17:
18: public CodeCompletionInfo[] getFunctionResults(String functionSting) {
19: if (false == functionMatches(functionSting)) {
20: return null;
21: }
22:
23: return new CodeCompletionInfo[] { new GenericCodeCompletionInfo(
24: "Hallo gwa comp") };
25: }
26: }
|