Bug fix for commented out pseudo file overlay.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29660 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2011-08-10 14:00:02 +00:00
parent 59af491727
commit 6ce1995a93

View File

@@ -54,23 +54,26 @@ public class PseudoFileOverlayImpl implements PseudoFileOverlay
PropertyCheck.mandatory(this, "context", context);
DesktopActionTable actions = context.getDesktopActions();
Enumeration<String> actionNames = actions.enumerateActionNames();
while(actionNames.hasMoreElements())
if(actions != null)
{
// Get the current desktop action
String name = actionNames.nextElement();
DesktopAction action = actions.getAction(name);
Enumeration<String> actionNames = actions.enumerateActionNames();
while(actionNames.hasMoreElements())
{
// Get the current desktop action
String name = actionNames.nextElement();
DesktopAction action = actions.getAction(name);
// Add the pseudo file for the desktop action
// Add the pseudo file for the desktop action
if ( action.hasPseudoFile())
{
PseudoFile file = action.getPseudoFile();
pl.addFile(file);
}
}
if ( action.hasPseudoFile())
{
PseudoFile file = action.getPseudoFile();
pl.addFile(file);
}
}
}
}
private PseudoFile generateURLShortcut(NodeRef nodeRef)