diffs = avmSyncService.compare(-1, userStore, -1, stagingStore);
@@ -391,7 +398,7 @@ public class UIUserSandboxes extends SelfRenderingComponent
else
{
// must have been deleted from this sandbox - show ghosted
- AVMNodeDescriptor ghost = avmService.lookup(-1, diff.getDestinationPath());
+ AVMNodeDescriptor ghost = avmService.lookup(-1, diff.getSourcePath(), true);
if (ghost != null)
{
// icon and name of the file/folder - files are clickable to see the content
@@ -401,14 +408,14 @@ public class UIUserSandboxes extends SelfRenderingComponent
{
out.write(Utils.buildImageTag(fc, Utils.getFileTypeImage(fc, name, true), ""));
out.write("");
- out.write(name);
+ out.write(name + " [" + bundle.getString(MSG_DELETED_ITEM) + "]");
out.write("");
}
else
{
out.write(Utils.buildImageTag(fc, SPACE_ICON, 16, 16, ""));
out.write(" | ");
- out.write(name);
+ out.write(name + " [" + bundle.getString(MSG_DELETED_ITEM) + "]");
}
out.write(" | ");
@@ -427,8 +434,10 @@ public class UIUserSandboxes extends SelfRenderingComponent
}
out.write(" | ");
- // no UI actions for this item
- out.write('[' + bundle.getString(MSG_DELETED_ITEM) + ']');
+ // deleted UI actions for this item
+ uiDeletedActions.setContext(new AVMNode(ghost, true));
+ Utils.encodeRecursive(fc, uiDeletedActions);
+
out.write(" | ");
}
}