]> git.argeo.org Git - lgpl/argeo-commons.git/blob - NodeEditorInput.java
18718388b897398a5cfed44be36d6506460e78d1
[lgpl/argeo-commons.git] / NodeEditorInput.java
1 package org.argeo.eclipse.ui.jcr.editors;
2
3 import org.eclipse.jface.resource.ImageDescriptor;
4 import org.eclipse.ui.IEditorInput;
5 import org.eclipse.ui.IPersistableElement;
6
7 public class NodeEditorInput implements IEditorInput {
8 private final String path;
9
10 public NodeEditorInput(String path) {
11 this.path = path;
12 }
13
14 public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
15 return null;
16 }
17
18 public boolean exists() {
19 return true;
20 }
21
22 public ImageDescriptor getImageDescriptor() {
23 return null;
24 }
25
26 public String getName() {
27 return path;
28 }
29
30 public IPersistableElement getPersistable() {
31 return null;
32 }
33
34 public String getToolTipText() {
35 return path;
36 }
37
38 public String getPath() {
39 return path;
40 }
41
42 }