diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpg/mpiwg/itgroup/digilib/plugin/editors/DigilibLinkEditorInput.java	Mon Jan 03 09:11:25 2011 +0100
@@ -0,0 +1,65 @@
+package de.mpg.mpiwg.itgroup.digilib.plugin.editors;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IPersistableElement;
+
+public class DigilibLinkEditorInput implements IEditorInput {
+
+	private IFile indexMetaFile;
+	public static int INDEX_META=0;
+	private int type;
+
+	public IFile getIndexMetaFile() {
+		return indexMetaFile;
+	}
+
+	public void setIndexMetaFile(IFile indexMetaFile) {
+		this.indexMetaFile = indexMetaFile;
+	}
+
+	public int getType() {
+		return type;
+	}
+
+	public void setType(int type) {
+		this.type = type;
+	}
+
+	public DigilibLinkEditorInput(IFile file, int type) {
+		indexMetaFile = file;
+		setType(type);
+	}
+
+	public Object getAdapter(Class adapter) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public boolean exists() {
+		// TODO Auto-generated method stub
+		return false;
+	}
+
+	public ImageDescriptor getImageDescriptor() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public String getName() {
+		// TODO Auto-generated method stub
+		return "hello_name";
+	}
+
+	public IPersistableElement getPersistable() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public String getToolTipText() {
+		// TODO Auto-generated method stub
+		return "hello";
+	}
+
+}