]>
git.argeo.org Git - gpl/argeo-slc.git/blob - plugins/org.argeo.slc.akb.ui/src/main/java/org/argeo/slc/akb/ui/editors/AkbNodeEditorInput.java
1 package org
.argeo
.slc
.akb
.ui
.editors
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.ui
.IEditorInput
;
5 import org
.eclipse
.ui
.IPersistableElement
;
8 * Editor input for all editors that display info on a given AKB JCR Node.
11 public class AkbNodeEditorInput
implements IEditorInput
{
13 private final String jcrId
;
15 /** the Jcr ID cannot be null */
16 public AkbNodeEditorInput(String jcrId
) {
20 public String
getIdentifier() {
24 public boolean exists() {
28 public ImageDescriptor
getImageDescriptor() {
32 public String
getName() {
36 public IPersistableElement
getPersistable() {
40 public String
getToolTipText() {
41 return "Display and edit information about a given AKB Jcr Node";
44 @SuppressWarnings("rawtypes")
45 public Object
getAdapter(Class adapter
) {
49 public int hashCode() {
50 return jcrId
.hashCode();
53 public boolean equals(Object obj
) {
58 if (getClass() != obj
.getClass())
60 AkbNodeEditorInput other
= (AkbNodeEditorInput
) obj
;
61 if (!jcrId
.equals(other
.getIdentifier()))