comparison src/de/mpg/mpiwg/itgroup/digilib/plugin/editors/DigilibLinkEditorInput.java @ 1:83c58ea33792

first release (continued)
author dwinter
date Mon, 03 Jan 2011 09:11:25 +0100
parents
children e63a64652f4d
comparison
equal deleted inserted replaced
0:6829553d2378 1:83c58ea33792
1 package de.mpg.mpiwg.itgroup.digilib.plugin.editors;
2
3 import org.eclipse.core.resources.IFile;
4 import org.eclipse.jface.resource.ImageDescriptor;
5 import org.eclipse.ui.IEditorInput;
6 import org.eclipse.ui.IPersistableElement;
7
8 public class DigilibLinkEditorInput implements IEditorInput {
9
10 private IFile indexMetaFile;
11 public static int INDEX_META=0;
12 private int type;
13
14 public IFile getIndexMetaFile() {
15 return indexMetaFile;
16 }
17
18 public void setIndexMetaFile(IFile indexMetaFile) {
19 this.indexMetaFile = indexMetaFile;
20 }
21
22 public int getType() {
23 return type;
24 }
25
26 public void setType(int type) {
27 this.type = type;
28 }
29
30 public DigilibLinkEditorInput(IFile file, int type) {
31 indexMetaFile = file;
32 setType(type);
33 }
34
35 public Object getAdapter(Class adapter) {
36 // TODO Auto-generated method stub
37 return null;
38 }
39
40 public boolean exists() {
41 // TODO Auto-generated method stub
42 return false;
43 }
44
45 public ImageDescriptor getImageDescriptor() {
46 // TODO Auto-generated method stub
47 return null;
48 }
49
50 public String getName() {
51 // TODO Auto-generated method stub
52 return "hello_name";
53 }
54
55 public IPersistableElement getPersistable() {
56 // TODO Auto-generated method stub
57 return null;
58 }
59
60 public String getToolTipText() {
61 // TODO Auto-generated method stub
62 return "hello";
63 }
64
65 }