. Clipboard Paste As Link fix for when pasting into a folder containing a link file with the same name

. Minor 2.0 UI CSS fix

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4952 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-01-29 11:31:11 +00:00
parent cc72c05830
commit e8092fa024
2 changed files with 4 additions and 4 deletions

View File

@@ -51,8 +51,8 @@ public class WorkspaceClipboardItem extends AbstractClipboardItem
private static final String MSG_LINK_TO = "link_to";
// File extension to use for link nodes
private static final String LINK_NODE_EXTENSION = ".url";
private static final String LinkNodeExtension = ".url";
/**
* @param ref
@@ -131,10 +131,10 @@ public class WorkspaceClipboardItem extends AbstractClipboardItem
// we create a special Link Object node that has a property to reference the original
// create the node using the nodeService (can only use FileFolderService for content)
if (checkExists(name + ".lnk", destRef) == false)
if (checkExists(name + LINK_NODE_EXTENSION, destRef) == false)
{
Map<QName, Serializable> props = new HashMap<QName, Serializable>(2, 1.0f);
props.put(ContentModel.PROP_NAME, name + LinkNodeExtension);
props.put(ContentModel.PROP_NAME, name + LINK_NODE_EXTENSION);
props.put(ContentModel.PROP_LINK_DESTINATION, getNodeRef());
if (dd.isSubClass(getType(), ContentModel.TYPE_CONTENT))
{