Ejemplo n.º 1
0
 void InitSelectionSearch()
 {
     findFirst = true;
     selection = GetCurrentTextSelection();
     AddSelectionChangedHandler(SearchReplaceUtilities.GetActiveTextEditor());
     WorkbenchSingleton.Workbench.ActiveViewContentChanged += WorkbenchActiveViewContentChanged;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// When the selected text is changed make sure the 'Current Selection'
 /// option is not selected if no text is selected.
 /// </summary>
 /// <remarks>The text selection can change either when the user
 /// selects different text in the editor or the active window is
 /// changed.</remarks>
 void TextSelectionChanged(object source, EventArgs e)
 {
     if (!ignoreSelectionChanges)
     {
         LoggingService.Debug("TextSelectionChanged.");
         selection = GetCurrentTextSelection();
         findFirst = true;
     }
 }
		void InitSelectionSearch()
		{
			findFirst = true;
			selection = GetCurrentTextSelection();
			AddSelectionChangedHandler(SearchReplaceUtilities.GetActiveTextEditor());
			WorkbenchSingleton.Workbench.ActiveViewContentChanged += WorkbenchActiveViewContentChanged;
		}
		/// <summary>
		/// When the selected text is changed make sure the 'Current Selection'
		/// option is not selected if no text is selected.
		/// </summary>
		/// <remarks>The text selection can change either when the user
		/// selects different text in the editor or the active window is
		/// changed.</remarks>
		void TextSelectionChanged(object source, EventArgs e)
		{
			if (!ignoreSelectionChanges) {
				LoggingService.Debug("TextSelectionChanged.");
				selection = GetCurrentTextSelection();
				findFirst = true;
			}
		}