示例#1
0
 public void SetGoToPositions(List <RunShellCommand.Position> positions)
 {
     goToNodes            = null;
     lastGoToNode         = null;
     lastOmniSharpUsages  = null;
     lastOmniSharpUsage   = -1;
     lastCommandPositions = positions;
     lastCommandPosition  = null;
 }
示例#2
0
 public void SetGoToTags(List <Node> nodes)
 {
     goToNodes            = nodes;
     lastGoToNode         = null;
     lastOmniSharpUsages  = null;
     lastOmniSharpUsage   = -1;
     lastCommandPositions = null;
     lastCommandPosition  = null;
 }
示例#3
0
    public void GoToTag(RunShellCommand.Position position)
    {
        lastCommandPosition = position;
        if (string.IsNullOrEmpty(position.fileName) || position.fileName.Trim() == "")
        {
            mainForm.NavigateTo(position.place, position.place);
            return;
        }
        string fullPath = null;

        try
        {
            fullPath = Path.GetFullPath(position.fileName);
        }
        catch
        {
            mainForm.Dialogs.ShowInfo("Error", "Incorrect path: " + position.fileName);
            return;
        }
        mainForm.NavigateTo(fullPath, position.place, position.place);
    }