diff src/de/mpg/mpiwg/itgroup/digilib/plugin/DigilibHandler.java @ 9:e63a64652f4d

added comments
author dwinter
date Mon, 03 Jan 2011 16:53:48 +0100
parents 83c58ea33792
children 0205c3f41d1d
line wrap: on
line diff
--- a/src/de/mpg/mpiwg/itgroup/digilib/plugin/DigilibHandler.java	Mon Jan 03 09:13:17 2011 +0100
+++ b/src/de/mpg/mpiwg/itgroup/digilib/plugin/DigilibHandler.java	Mon Jan 03 16:53:48 2011 +0100
@@ -13,6 +13,13 @@
 import de.mpg.mpiwg.itgroup.digilib.plugin.editors.DigilibLinkEditorInput;
 import de.mpg.mpiwg.itgroup.digilib.plugin.editors.DigilibLinkEditorPart;
 
+/**
+ * @author dwinter
+ *
+ * Open an DigilibLinkEditorPart on the selected files. Currently, the selected files have to be index meta files.
+ * Where archive-path and texttols/image points to the image folder.
+ * TODO chck the format and allow other formats.
+ */
 public class DigilibHandler implements IHandler {
 
 	public void addHandlerListener(IHandlerListener handlerListener) {
@@ -30,10 +37,9 @@
 		ISelection currentSelection = HandlerUtil.getCurrentSelection(event);
 		if (IStructuredSelection.class.isInstance(currentSelection)) {
 			IStructuredSelection selection = (IStructuredSelection) currentSelection;
-			//TextGridObject object = AdapterUtils.getAdapter(selection.getFirstElement(), TextGridObject.class);
+			
 			Object object = selection.getFirstElement();
 			
-			//IFile file = (IFile) object.getAdapter(IFile.class);
 			IFile file = (IFile) object;
 			DigilibLinkEditorInput input = new DigilibLinkEditorInput(file,DigilibLinkEditorInput.INDEX_META);