]> 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/NodeEditorInput.java
Jcr Explorer refactoring and packaging
[lgpl/argeo-commons.git] / eclipse / runtime / org.argeo.eclipse.ui.jcr / src / main / java / org / argeo / eclipse / ui / jcr / editors / 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 /**
8 * A canonical editor input based on a path to a node. In a multirepository
9 * environment, path can be enriched with Repository Alias and workspace
10 */
11
12 public class NodeEditorInput implements IEditorInput {
13 private final String path;
14
15 public NodeEditorInput(String path) {
16 this.path = path;
17 }
18
19 public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
20 return null;
21 }
22
23 public boolean exists() {
24 return true;
25 }
26
27 public ImageDescriptor getImageDescriptor() {
28 return null;
29 }
30
31 public String getName() {
32 return path;
33 }
34
35 public IPersistableElement getPersistable() {
36 return null;
37 }
38
39 public String getToolTipText() {
40 return path;
41 }
42
43 public String getPath() {
44 return path;
45 }
46 }