### Eclipse Workspace Patch 1.0
#P org.sophie2.main.dnd
Index: src/main/java/org/sophie2/main/dnd/dnddata/FileListData.java
===================================================================
--- src/main/java/org/sophie2/main/dnd/dnddata/FileListData.java	(revision 8847)
+++ src/main/java/org/sophie2/main/dnd/dnddata/FileListData.java	(working copy)
@@ -9,7 +9,6 @@
 import java.net.URISyntaxException;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.StringTokenizer;
 
 import org.sophie2.base.dnd.AwtTransferable;
 import org.sophie2.base.dnd.DndData;
@@ -75,8 +74,7 @@
 		
 		private static List<File> textURIListToFileList(String data) {
 			List<File> list = new ArrayList<File>(1);
-			for (StringTokenizer st = new StringTokenizer(data, "\r\n"); st.hasMoreTokens();) {
-				String str = st.nextToken();
+			for (String str : data.split("\r\n")) {
 				if (str.startsWith("#")) {
 					// the line is a comment (as per the RFC 2483)
 					continue;
#P org.sophie2.main.func.resources
Index: src/main/java/org/sophie2/main/func/resources/logic/ResourceDeleteLogic.java
===================================================================
--- src/main/java/org/sophie2/main/func/resources/logic/ResourceDeleteLogic.java	(revision 8847)
+++ src/main/java/org/sophie2/main/func/resources/logic/ResourceDeleteLogic.java	(working copy)
@@ -19,11 +19,12 @@
 import org.sophie2.main.app.commons.book.BookView;
 import org.sophie2.main.app.commons.element.ElementView;
 import org.sophie2.main.app.commons.page.RootPageView;
+import org.sophie2.main.app.commons.util.AppViewUtil;
 import org.sophie2.main.dialogs.input.ConfirmDialogInput;
 import org.sophie2.main.dialogs.input.DialogUtils;
 import org.sophie2.main.func.resources.view.ResourceDetailsPalette;
+import org.sophie2.main.func.resources.view.ResourceDetailsPalette.DeleteResourceButton;
 import org.sophie2.main.func.resources.view.ResourcesPalette.ResourceItem;
-import org.sophie2.main.func.resources.view.ResourceDetailsPalette.DeleteResourceButton;
 
 /**
  * Represents the logic for handling the deleting resources event.
@@ -49,7 +50,7 @@
 
 			assert palette != null : "The source must not be null!";
 
-			BookDocView bookDocView = palette.findNearestElement(null, BookDocView.class);
+			BookDocView bookDocView = AppViewUtil.getCurrentBookDocView(palette);
 			ListPaletteItem selectedItem = 
 				palette.resourcePalette().get().firstSelectedItem().get();
 
@@ -76,8 +77,8 @@
 				return deleteResource(resource, book);
 			}
 
-				DialogUtils.showErrorDialog(null, "The selected resource is currently in use.",
-				  "Could not delete resource");
+			DialogUtils.showErrorDialog(null, "The selected resource is currently in use.",
+				"Could not delete resource");
 			return true;
 		}
 	};
#P org.sophie2.main.app.commons
Index: src/main/java/org/sophie2/main/app/commons/element/CopyUtil.java
===================================================================
--- src/main/java/org/sophie2/main/app/commons/element/CopyUtil.java	(revision 8847)
+++ src/main/java/org/sophie2/main/app/commons/element/CopyUtil.java	(working copy)
@@ -234,7 +234,8 @@
 			for (String childName : children) {
 				RootKey key = RootKey.fromRef(ResourceRefR4.makeChild(childName));
 				ResourceModel childModel = model.getSubModel(key);
-				decapsulate(bookModel, childModel, ResourceRefR4.makeChild(childName), 
+				decapsulate(bookModel, childModel,
+						bookToModel.append(ResourceRefR4.makeChild(childName)), 
 						bookChanger, false);
 			}
 		}
#P org.sophie2.main.app.halos
Index: src/main/java/org/sophie2/main/app/halos/grouping/GroupHalosLogic.java
===================================================================
--- src/main/java/org/sophie2/main/app/halos/grouping/GroupHalosLogic.java	(revision 8847)
+++ src/main/java/org/sophie2/main/app/halos/grouping/GroupHalosLogic.java	(working copy)
@@ -236,7 +236,7 @@
 			ElementH parentH = ((ElementView) groupView.parent().get()).model().get();
 			
 			final ResourceRefR4 relativeGroupRef = 
-				ResourceRefR4.getRelativeRef(groupRef, parentH.getRef());
+				ResourceRefR4.getRelativeRef(parentH.getRef(), groupRef);
 			ResourceAccess parentAccess = parentH.getAccess();
 			ImmList<ActivationChannel> channels = 
 				CompositeElement.KEY_SUB_ELEMENTS.get(parentAccess);

