From: Natasa Kapravelou Date: Fri, 21 Jan 2011 14:00:27 +0000 (+0200) Subject: Full names for Forder resource are available during the display of Properties dialog... X-Git-Tag: pithos/v0.7.8~323^2~14^2~22^2~84 X-Git-Url: https://code.grnet.gr/git/pithos/commitdiff_plain/b253976fe79510d49b872e3dcf7d54b13a369874 Full names for Forder resource are available during the display of Properties dialog box. --- diff --git a/src/gr/ebs/gss/client/commands/PropertiesCommand.java b/src/gr/ebs/gss/client/commands/PropertiesCommand.java index 2981878..43819f4 100644 --- a/src/gr/ebs/gss/client/commands/PropertiesCommand.java +++ b/src/gr/ebs/gss/client/commands/PropertiesCommand.java @@ -66,8 +66,6 @@ public class PropertiesCommand implements Command { private String userName; - private boolean isFile = false; - /** * @param _containerPanel * @param _newImages the images of all the possible delete dialogs @@ -181,7 +179,7 @@ public class PropertiesCommand implements Command { private boolean canContinue() { String userFullNameFromMap = GSS.get().findUserFullName(userName); - if(groups == null || versions == null || isFile && userFullNameFromMap == null) + if(groups == null || versions == null || userFullNameFromMap == null) return false; return true; } @@ -278,15 +276,20 @@ public class PropertiesCommand implements Command { } private void getOwnerFullName() { - if(GSS.get().getCurrentSelection() instanceof FileResource){ - isFile = true; + if(GSS.get().getCurrentSelection() instanceof FileResource){ FileResource fileResource = (FileResource) GSS.get().getCurrentSelection(); userName = fileResource.getOwner(); if(GSS.get().findUserFullName(userName) == null){ GetUserCommand gu = new GetUserCommand(userName); gu.execute(); } - + }else{ + FolderResource resource = (FolderResource) GSS.get().getCurrentSelection(); + userName = resource.getOwner(); + if(GSS.get().findUserFullName(userName) == null){ + GetUserCommand gu = new GetUserCommand(userName); + gu.execute(); + } } }