1 package net.sourceforge.phpdt.sql.view.query;
3 import net.sourceforge.phpdt.sql.view.bookmark.Root;
4 import net.sourceforge.phpdt.sql.view.bookmark.TreeNode;
6 public class QueryNode implements TreeNode {
7 TreeNode parent = Root.ROOT;
11 public QueryNode(String query) {
14 boolean trimmed = false;
15 query = query.replace('\n', ' ');
17 if (query.length() > maxSize) {
18 query = query.substring(0, maxSize);
26 public String getName() {
30 public String getQuery() {
34 public Object[] getChildren() {
35 return Root.EMPTY_ARRAY;
38 public Object getParent() {
42 public boolean hasChildren() {
46 public String toString() {