Exemplo n.º 1
0
 private static void OnRefactorComplete(object sender, RefactorCompleteEventArgs <IDictionary <string, List <SearchMatch> > > e)
 {
     if (currentCommand.OutputResults)
     {
         foreach (KeyValuePair <string, List <SearchMatch> > entry in currentCommand.Results)
         {
             string path = entry.Key;
             if (!results.ContainsKey(path))
             {
                 results[path] = new List <SearchMatch>();
             }
             results[path].AddRange(entry.Value);
         }
     }
     if (queue.Count > 0)
     {
         ExecuteFirst();
     }
     else
     {
         if (results.Count > 0)
         {
             ReportResults();
         }
         results.Clear();
         currentCommand = null;
     }
 }
Exemplo n.º 2
0
 static void OnRefactorComplete(object sender, RefactorCompleteEventArgs <IDictionary <string, List <SearchMatch> > > e)
 {
     if (queue.Count > 0)
     {
         ExecuteFirst();
     }
     else
     {
         currentCommand = null;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 private static void OnRefactorComplete(object sender, RefactorCompleteEventArgs <IDictionary <string, List <PluginCore.FRService.SearchMatch> > > e)
 {
     if (queue.Count > 0)
     {
         MoveFirst();
     }
     else
     {
         currentCommand = null;
     }
 }
Exemplo n.º 4
0
 private static void OnRefactorComplete(object sender, RefactorCompleteEventArgs<IDictionary<string, List<SearchMatch>>> e)
 {
     if (currentCommand.OutputResults)
     {
         foreach (KeyValuePair<string, List<SearchMatch>> entry in currentCommand.Results)
         {
             string path = entry.Key;
             if (!results.ContainsKey(path)) results[path] = new List<SearchMatch>();
             results[path].AddRange(entry.Value);
         }
     }
     if (queue.Count > 0) MoveFirst();
     else
     {
         if (results.Count > 0) ReportResults();
         results.Clear();
         currentCommand = null;
     }
 }
Exemplo n.º 5
0
 private static void OnRefactorComplete(object sender, RefactorCompleteEventArgs <IDictionary <string, List <SearchMatch> > > e)
 {
     currentCommand.OnRefactorComplete -= OnRefactorComplete;
     if (queue.Count == 0)
     {
         //if (currentCommand.OutputResults)
         //{
         //    PluginBase.MainForm.CallCommand("PluginCommand", "ResultsPanel.ShowResults");
         //}
         if (startState != null)
         {
             RestoreStartState();
         }
         currentCommand = null;
         startState     = null;
     }
     else
     {
         ExecuteFirst();
     }
 }
Exemplo n.º 6
0
 static void OnRefactorComplete(object sender, RefactorCompleteEventArgs<IDictionary<string, List<SearchMatch>>> e)
 {
     if (queue.Count > 0) ExecuteFirst();
     else currentCommand = null;
 }
Exemplo n.º 7
0
 /// <summary>
 /// 
 /// </summary>
 private static void OnRefactorComplete(object sender, RefactorCompleteEventArgs<IDictionary<string, List<PluginCore.FRService.SearchMatch>>> e)
 {
     if (queue.Count > 0) MoveFirst();
     else currentCommand = null;
 }
Exemplo n.º 8
0
 private static void OnRefactorComplete(object sender, RefactorCompleteEventArgs<IDictionary<string, List<SearchMatch>>> e)
 {
     currentCommand.OnRefactorComplete -= OnRefactorComplete;
     if (queue.Count == 0)
     {
         //if (currentCommand.OutputResults)
         //{
         //    PluginBase.MainForm.CallCommand("PluginCommand", "ResultsPanel.ShowResults");
         //}
         if (startState != null) RestoreStartState();
         currentCommand = null;
         startState = null;
     }
     else ExecuteFirst();
 }