You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
854 B
35 lines
854 B
using Codice.Client.Commands.WkTree; |
|
using Codice.CM.Common; |
|
|
|
namespace Codice |
|
{ |
|
internal static class CheckWorkspaceTreeNodeStatus |
|
{ |
|
internal static bool IsPrivate(WorkspaceTreeNode node) |
|
{ |
|
return node == null; |
|
} |
|
|
|
internal static bool IsCheckedOut(WorkspaceTreeNode node) |
|
{ |
|
if (node == null) |
|
return false; |
|
|
|
return node.RevInfo.CheckedOut; |
|
} |
|
|
|
internal static bool IsAdded(WorkspaceTreeNode node) |
|
{ |
|
if (node == null) |
|
return false; |
|
|
|
return node.RevInfo.CheckedOut && |
|
node.RevInfo.ParentId == -1; |
|
} |
|
|
|
internal static bool IsDirectory(WorkspaceTreeNode node) |
|
{ |
|
return node.RevInfo.Type == EnumRevisionType.enDirectory; |
|
} |
|
} |
|
}
|
|
|