1 package com.quantum.view.bookmark;
3 import com.quantum.sql.metadata.ObjectMetaData;
5 public class QueryNode extends TreeNode {
8 private static final int MAX_SIZE = 30;
10 public QueryNode(TreeNode parent, String query) {
15 public ObjectMetaData getMetaData() {
16 return null; //no metadata implementation for now
19 public String getQuery() {
23 public String getName() {
24 String name = this.query.trim();
25 boolean trimmed = false;
26 name = name.replace('\n', ' ');
28 if (name.length() > MAX_SIZE) {
29 name = name.substring(0, MAX_SIZE);
33 name += "...->"; //$NON-NLS-1$
39 * @see com.quantum.view.bookmark.TreeNode#getChildren()
41 public Object[] getChildren() {
42 return BookmarkListNode.EMPTY_ARRAY;
46 * @see com.quantum.view.bookmark.TreeNode#hasChildren()
48 public boolean hasChildren() {
53 * @see com.quantum.view.bookmark.TreeNode#getImageName()
55 protected String getImageName() {
60 * @see com.quantum.view.bookmark.TreeNode#initializeChildren()
62 protected void initializeChildren() {