private bool IsMapped(string serverPath)
 {
     if (_currentWorkspace == null)
     {
         return(false);
     }
     return(_currentWorkspace.IsServerPathMapped(serverPath));
 }
Ejemplo n.º 2
0
        public void Show(Workspace workspace, string path)
        {
            bool root_folder = (path == VersionControlPath.RootFolder);
            bool path_mapped = (workspace != null && workspace.IsServerPathMapped(path));

            getLatestItem.Sensitive = (path_mapped && !root_folder);
            workingFolderItem.Sensitive = (workspace != null && !root_folder);

            editRepoItem.Sensitive = root_folder;
            deleteRepoItem.Sensitive = root_folder;

            currentWorkspace = workspace;
            currentPath = path;

            Popup();
        }
Ejemplo n.º 3
0
        public void Show(Workspace workspace, string path)
        {
            bool root_folder = (path == VersionControlPath.RootFolder);
            bool path_mapped = workspace.IsServerPathMapped(path);

            getLatestItem.Sensitive = (path_mapped && !root_folder);

            currentWorkspace = workspace;
            currentPath = path;

            Popup();
        }
Ejemplo n.º 4
0
 private static bool IsMapped(Workspace workspace, string targetItem)
 {
     return workspace.IsServerPathMapped(targetItem);
 }
 public bool IsServerPathMapped(Workspace workspace, string serverItem)
 {
     return workspace.IsServerPathMapped(serverItem);
 }