1 package org
.argeo
.demo
.i18n
.editors
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.ui
.IEditorInput
;
5 import org
.eclipse
.ui
.IPersistableElement
;
8 * An editor input based the object name.
11 public class SimpleMultitabEditorInput
implements IEditorInput
{
13 private final String name
;
15 public SimpleMultitabEditorInput(String name
) {
19 public String
getName() {
23 public Object
getAdapter(@SuppressWarnings("rawtypes") Class adapter
) {
27 public boolean exists() {
31 public ImageDescriptor
getImageDescriptor() {
35 public IPersistableElement
getPersistable() {
40 * equals method based on the name
42 public boolean equals(Object obj
) {
47 if (getClass() != obj
.getClass())
50 SimpleMultitabEditorInput other
= (SimpleMultitabEditorInput
) obj
;
51 if (!getName().equals(other
.getName()))
57 public String
getToolTipText() {