KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > eclipse > console > editors > HQLEditorInput


1 /*
2  * Created on 2004-10-27 by max
3  *
4  */

5 package org.hibernate.eclipse.console.editors;
6
7 import org.eclipse.jface.resource.ImageDescriptor;
8 import org.eclipse.ui.IEditorInput;
9 import org.eclipse.ui.IMemento;
10 import org.eclipse.ui.IPersistableElement;
11
12 /**
13  * @author max
14  *
15  */

16 public class HQLEditorInput implements IEditorInput {
17
18     private final String JavaDoc queryString;
19
20     public HQLEditorInput(String JavaDoc queryString) {
21         this.queryString = queryString;
22     }
23     
24     public String JavaDoc getQueryString() {
25         return queryString;
26     }
27     
28     public boolean exists() {
29         return false;
30     }
31
32     public ImageDescriptor getImageDescriptor() {
33         return null;
34     }
35
36     public String JavaDoc getName() {
37         return this.toString();
38     }
39
40     public IPersistableElement getPersistable() {
41         return null;
42     }
43
44     public String JavaDoc getToolTipText() {
45         return "HQL";
46     }
47
48     public Object JavaDoc getAdapter(Class JavaDoc adapter) {
49         return null;
50     }
51
52     
53
54 }
55
Popular Tags