. Deleted Files and Deleted Folders now show file/folder icon

. Fix to my over zealous refactoring in Submit Dialog

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4572 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-12-11 18:35:25 +00:00
parent 84ca33ed6f
commit 87e57b8fac
4 changed files with 14 additions and 5 deletions

View File

@@ -697,6 +697,9 @@ public class AVMBrowseBean implements IContextListener
return this.userSandboxes.getSelectedNodes(this.username);
}
/**
* @return true if the special Submit All action has been initialised
*/
public boolean getSubmitAll()
{
return this.submitAll;

View File

@@ -484,6 +484,11 @@ public class SubmitDialog extends BaseDialogBean
this.workflows.add(wrapper);
}
}
else
{
this.submitItems.add(new ItemWrapper(node));
submittedPaths.add(node.getPath());
}
}
else
{
@@ -669,8 +674,7 @@ public class SubmitDialog extends BaseDialogBean
public String getIcon()
{
// TODO: handle deleted file types here once implemented in the AVMNodeType enum
if (descriptor.isFile())
if (descriptor.isDeletedFile())
{
return Utils.getFileTypeImage(descriptor.getName(), true);
}

View File

@@ -623,8 +623,7 @@ public class UIUserSandboxes extends SelfRenderingComponent
// must have been deleted from this sandbox - show as ghosted
String name = node.getName();
out.write("<td width=16>");
// TODO: need new solution - isFile() and isFolder() both return false for a deleted node!
if (node.isFile())
if (node.isDeletedFile())
{
out.write(Utils.buildImageTag(fc, Utils.getFileTypeImage(fc, name, true), ""));
out.write("</td><td style='color:#aaaaaa'>");

View File

@@ -137,7 +137,10 @@
<a:sortLink label="#{msg.name}" value="name" mode="case-insensitive" styleClass="header"/>
</f:facet>
<f:facet name="small-icon">
<h:panelGroup>
<a:actionLink id="col10-icon1" value="#{r.name}" href="#{r.url}" target="new" image="#{r.icon}" showLink="false" styleClass="inlineAction" rendered="#{!r.deleted}" />
<h:graphicImage id="col10-icon2" title="#{r.name}" url="#{r.icon}" styleClass="inlineAction" rendered="#{r.deleted}" />
</h:panelGroup>
</f:facet>
<a:actionLink id="col10-name1" value="#{r.name}" href="#{r.url}" target="new" rendered="#{!r.deleted}" />
<h:outputText id="col10-name2" value="#{r.name}" rendered="#{r.deleted}" />