package de.afbb.bibo.ui.handler;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

import de.afbb.bibo.share.model.Copy;
import de.afbb.bibo.ui.view.ReturnCopyView;

public class ReturnCopyHandler extends AbstractHandler {

	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		final IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
		try {
			page.openEditor(new Copy(), ReturnCopyView.ID);
		} catch (final PartInitException e) {
			e.printStackTrace();
			// shouldn't happen
		}
		return null;
	}

}

@@ -326,19 +326,22 @@
 .model.C
-opy
+urator
 ;%0Aimport
@@ -629,16 +629,77 @@
 %09%09try %7B%0A
+%09%09%09// currator as dummy input to not mess with register view%0A
 %09%09%09page.
@@ -714,19 +714,22 @@
 or(new C
-opy
+urator
 (), Retu

change type of dummy input to currator