");
if (item.Mode == ClipboardStatus.COPY)
{
out.write(Utils.buildImageTag(context, WebResources.IMAGE_COPY, 14, 16, bundle.getString(MSG_COPY), null, "absmiddle"));
@@ -167,17 +168,26 @@ public class UIClipboardShelfItem extends UIShelfItem
{
out.write(Utils.buildImageTag(context, WebResources.IMAGE_CUT, 13, 16, bundle.getString(MSG_CUT), null, "absmiddle"));
}
- out.write(" | ");
+ out.write(" | ");
if (dd.isSubClass(item.Node.getType(), ContentModel.TYPE_FOLDER))
{
- // start row with Space icon
- out.write(Utils.buildImageTag(context, WebResources.IMAGE_SPACE, 16, 16, null, null, "absmiddle"));
+ // start row with correct node icon
+ String icon = (String)item.Node.getProperties().get("app:icon");
+ if (icon != null)
+ {
+ icon = "/images/icons/" + icon + "-16.gif";
+ }
+ else
+ {
+ icon = WebResources.IMAGE_SPACE;
+ }
+ out.write(Utils.buildImageTag(context, icon, 16, 16, null, null, "absmiddle"));
}
else if (dd.isSubClass(item.Node.getType(), ContentModel.TYPE_CONTENT))
{
String image = Utils.getFileTypeImage(item.Node.getName(), true);
- out.write(Utils.buildImageTag(context, image, 16, 16, null, null, "absmiddle"));
+ out.write(Utils.buildImageTag(context, image, null, "absmiddle"));
}
// output cropped item label - we also output with no breaks, this is ok
@@ -190,6 +200,11 @@ public class UIClipboardShelfItem extends UIShelfItem
out.write(buildActionLink(ACTION_REMOVE_ITEM, i, bundle.getString(MSG_REMOVE_ITEM), WebResources.IMAGE_REMOVE));
out.write(" ");
out.write(buildActionLink(ACTION_PASTE_ITEM, i, bundle.getString(MSG_PASTE_ITEM), WebResources.IMAGE_PASTE));
+ //if (item.Mode == ClipboardStatus.COPY)
+ //{
+ // out.write(" ");
+ // out.write(buildActionLink(ACTION_PASTE_LINK, i, bundle.getString(MSG_PASTE_LINK), WebResources.IMAGE_PASTE_LINK));
+ //}
// end actions cell and end row
out.write(" |
");
@@ -337,17 +352,19 @@ public class UIClipboardShelfItem extends UIShelfItem
// Private data
/** I18N messages */
- private static final String MSG_REMOVE_ALL = "remove_all";
- private static final String MSG_PASTE_ALL = "paste_all";
- private static final String MSG_PASTE_ITEM = "paste_item";
+ private static final String MSG_REMOVE_ALL = "remove_all";
+ private static final String MSG_PASTE_ALL = "paste_all";
+ private static final String MSG_PASTE_ITEM = "paste_item";
+ private static final String MSG_PASTE_LINK = "paste_link";
private static final String MSG_REMOVE_ITEM = "remove_item";
private static final String MSG_CUT = "cut";
private static final String MSG_COPY = "copy";
- private final static int ACTION_REMOVE_ITEM = 0;
- private final static int ACTION_REMOVE_ALL = 1;
- private final static int ACTION_PASTE_ITEM = 2;
- private final static int ACTION_PASTE_ALL = 3;
+ public final static int ACTION_REMOVE_ITEM = 0;
+ public final static int ACTION_REMOVE_ALL = 1;
+ public final static int ACTION_PASTE_ITEM = 2;
+ public final static int ACTION_PASTE_ALL = 3;
+ public final static int ACTION_PASTE_LINK = 4;
/** the current list of clipboard items */
private List collections;
diff --git a/source/java/org/alfresco/web/ui/repo/component/shelf/UIRecentSpacesShelfItem.java b/source/java/org/alfresco/web/ui/repo/component/shelf/UIRecentSpacesShelfItem.java
index daddef9c09..667097a8b1 100644
--- a/source/java/org/alfresco/web/ui/repo/component/shelf/UIRecentSpacesShelfItem.java
+++ b/source/java/org/alfresco/web/ui/repo/component/shelf/UIRecentSpacesShelfItem.java
@@ -153,9 +153,18 @@ public class UIRecentSpacesShelfItem extends UIShelfItem
{
Node item = items.get(i);
- // start row with Space icon
- out.write("");
- out.write(Utils.buildImageTag(context, WebResources.IMAGE_SPACE, 16, 16, null, null, "absmiddle"));
+ // start row with correct node icon
+ out.write(" |
");
+ String icon = (String)item.getProperties().get("app:icon");
+ if (icon != null)
+ {
+ icon = "/images/icons/" + icon + "-16.gif";
+ }
+ else
+ {
+ icon = WebResources.IMAGE_SPACE;
+ }
+ out.write(Utils.buildImageTag(context, icon, 16, 16, null, null, "absmiddle"));
// output cropped item label - we also output with no breaks, this is ok
// as the copped label will ensure a sensible maximum width
diff --git a/source/java/org/alfresco/web/ui/repo/component/shelf/UIShortcutsShelfItem.java b/source/java/org/alfresco/web/ui/repo/component/shelf/UIShortcutsShelfItem.java
index a22c69a410..5a9cf4675c 100644
--- a/source/java/org/alfresco/web/ui/repo/component/shelf/UIShortcutsShelfItem.java
+++ b/source/java/org/alfresco/web/ui/repo/component/shelf/UIShortcutsShelfItem.java
@@ -179,16 +179,25 @@ public class UIShortcutsShelfItem extends UIShelfItem
{
Node item = items.get(i);
- out.write(" |
");
+ out.write(" |
");
if (dd.isSubClass(item.getType(), ContentModel.TYPE_FOLDER))
{
- // start row with Space icon
- out.write(Utils.buildImageTag(context, WebResources.IMAGE_SPACE, 16, 16, null, null, "absmiddle"));
+ // start row with correct node icon
+ String icon = (String)item.getProperties().get("app:icon");
+ if (icon != null)
+ {
+ icon = "/images/icons/" + icon + "-16.gif";
+ }
+ else
+ {
+ icon = WebResources.IMAGE_SPACE;
+ }
+ out.write(Utils.buildImageTag(context, icon, 16, 16, null, null, "absmiddle"));
}
else if (dd.isSubClass(item.getType(), ContentModel.TYPE_CONTENT))
{
String image = Utils.getFileTypeImage(item.getName(), true);
- out.write(Utils.buildImageTag(context, image, 16, 16, null, null, "absmiddle"));
+ out.write(Utils.buildImageTag(context, image, null, "absmiddle"));
}
// output cropped item label - we also output with no breaks, this is ok
diff --git a/source/web/WEB-INF/faces-config-beans.xml b/source/web/WEB-INF/faces-config-beans.xml
index cb9fe84049..0396b275c9 100644
--- a/source/web/WEB-INF/faces-config-beans.xml
+++ b/source/web/WEB-INF/faces-config-beans.xml
@@ -111,8 +111,8 @@
#{NodeService}
- nodeOperationsService
- #{CopyService}
+ fileFolderService
+ #{FileFolderService}
diff --git a/source/web/jsp/forums/forum.jsp b/source/web/jsp/forums/forum.jsp
index 2804320886..cac63efbca 100644
--- a/source/web/jsp/forums/forum.jsp
+++ b/source/web/jsp/forums/forum.jsp
@@ -79,38 +79,14 @@
|
<%-- Create actions menu --%>
|
+
<%-- More actions menu --%>
|
@@ -183,22 +159,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ <%-- actions are configured in web-client-config-forum-actions.xml --%>
+
diff --git a/source/web/jsp/forums/forums.jsp b/source/web/jsp/forums/forums.jsp
index 0c82bce9b1..9c77a2c0bb 100644
--- a/source/web/jsp/forums/forums.jsp
+++ b/source/web/jsp/forums/forums.jsp
@@ -80,47 +80,14 @@
<%-- Create actions menu --%>
|
+
<%-- More actions menu --%>
|
@@ -250,22 +217,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ <%-- actions are configured in web-client-config-forum-actions.xml --%>
+
diff --git a/source/web/jsp/forums/topic.jsp b/source/web/jsp/forums/topic.jsp
index b413e30a5d..a125e03556 100644
--- a/source/web/jsp/forums/topic.jsp
+++ b/source/web/jsp/forums/topic.jsp
@@ -79,38 +79,14 @@
<%-- Create actions menu --%>
|
+
<%-- More actions menu --%>
|
@@ -217,21 +193,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ <%-- actions are configured in web-client-config-forum-actions.xml --%>
+