]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - editors/ArgeoUserEditorInput.java
1 package org
.argeo
.security
.ui
.editors
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.ui
.IEditorInput
;
5 import org
.eclipse
.ui
.IPersistableElement
;
7 /** Editor input for an Argeo user. */
8 public class ArgeoUserEditorInput
implements IEditorInput
{
9 private final String username
;
11 public ArgeoUserEditorInput(String username
) {
12 this.username
= username
;
15 public Object
getAdapter(Class adapter
) {
19 public boolean exists() {
20 // TODO: use security service?
24 public ImageDescriptor
getImageDescriptor() {
28 public String
getName() {
32 public IPersistableElement
getPersistable() {
33 // TODO Auto-generated method stub
37 public String
getToolTipText() {
41 public boolean equals(Object obj
) {
42 if (!(obj
instanceof ArgeoUserEditorInput
))
44 if (((ArgeoUserEditorInput
) obj
).getUsername() == null)
46 return ((ArgeoUserEditorInput
) obj
).getUsername().equals(username
);
49 public String
getUsername() {