]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - eclipse/runtime/org.argeo.eclipse.ui.jcr/src/main/java/org/argeo/eclipse/ui/jcr/editors/JcrQueryEditorInput.java
45c2a68d3ccf7a719b40e6e549024cb5d8af0785
1 package org
.argeo
.eclipse
.ui
.jcr
.editors
;
3 import javax
.jcr
.query
.Query
;
5 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
6 import org
.eclipse
.ui
.IEditorInput
;
7 import org
.eclipse
.ui
.IPersistableElement
;
9 public class JcrQueryEditorInput
implements IEditorInput
{
10 private final String query
;
11 private final String queryType
;
13 public JcrQueryEditorInput(String query
, String queryType
) {
15 if (queryType
== null)
16 this.queryType
= Query
.JCR_SQL2
;
18 this.queryType
= queryType
;
21 public Object
getAdapter(@SuppressWarnings("rawtypes") Class adapter
) {
25 public boolean exists() {
29 public ImageDescriptor
getImageDescriptor() {
33 public String
getName() {
37 public IPersistableElement
getPersistable() {
41 public String
getToolTipText() {
45 public String
getQuery() {
49 public String
getQueryType() {