]> git.argeo.org Git - lgpl/argeo-commons.git/blob - NodeEditorInput.java
737613550bf4fd3da5d0a11f44f18384fa2826d3
[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 /** A canonical editor input based on a path to a node. */
8 public class NodeEditorInput implements IEditorInput {
9 private final String path;
10
11 public NodeEditorInput(String path) {
12 this.path = path;
13 }
14
15 public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
16 return null;
17 }
18
19 public boolean exists() {
20 return true;
21 }
22
23 public ImageDescriptor getImageDescriptor() {
24 return null;
25 }
26
27 public String getName() {
28 return path;
29 }
30
31 public IPersistableElement getPersistable() {
32 return null;
33 }
34
35 public String getToolTipText() {
36 return path;
37 }
38
39 public String getPath() {
40 return path;
41 }
42
43 }