1 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 16 public class HQLEditorInput implements IEditorInput { 17 18 private final String queryString; 19 20 public HQLEditorInput(String queryString) { 21 this.queryString = queryString; 22 } 23 24 public String 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 getName() { 37 return this.toString(); 38 } 39 40 public IPersistableElement getPersistable() { 41 return null; 42 } 43 44 public String getToolTipText() { 45 return "HQL"; 46 } 47 48 public Object getAdapter(Class adapter) { 49 return null; 50 } 51 52 53 54 } 55 | Popular Tags |