コード例 #1
0
 private bool IsMapped(string serverPath)
 {
     if (_currentWorkspace == null)
     {
         return(false);
     }
     return(_currentWorkspace.IsServerPathMapped(serverPath));
 }
コード例 #2
0
ファイル: RepositoryMenu.cs プロジェクト: Jeff-Lewis/opentf
        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();
        }
コード例 #3
0
ファイル: DirectoryMenu.cs プロジェクト: Jeff-Lewis/opentf
        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();
        }
コード例 #4
0
ファイル: BranchValidator.cs プロジェクト: Manuel-S/AutoMerge
 private static bool IsMapped(Workspace workspace, string targetItem)
 {
     return workspace.IsServerPathMapped(targetItem);
 }
コード例 #5
0
 public bool IsServerPathMapped(Workspace workspace, string serverItem)
 {
     return workspace.IsServerPathMapped(serverItem);
 }