|
|
@ -27,12 +27,12 @@ namespace ICSharpCode.SharpDevelop |
|
|
|
/// implementation. This scheme supports the basic function of logging a
|
|
|
|
/// implementation. This scheme supports the basic function of logging a
|
|
|
|
/// filename and returning to that file's default view.</para>
|
|
|
|
/// filename and returning to that file's default view.</para>
|
|
|
|
/// <para>The default text editor provides a slightly more sophisticated
|
|
|
|
/// <para>The default text editor provides a slightly more sophisticated
|
|
|
|
/// scheme, <see cref="ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.TextEditorNavigationPoint">
|
|
|
|
/// scheme, <see cref="ICSharpCode.SharpDevelop.TextNavigationPoint">
|
|
|
|
/// TextEditorNavigationPoint</see>, that logs filename and line number.</para>
|
|
|
|
/// TextEditorNavigationPoint</see>, that logs filename and line number.</para>
|
|
|
|
/// <para>To implement your own navigation scheme, implement
|
|
|
|
/// <para>To implement your own navigation scheme, implement
|
|
|
|
/// <see cref="IViewContent"/> or derive from
|
|
|
|
/// <see cref="IViewContent"/> or derive from
|
|
|
|
/// <see cref="AbstractViewContent"/> and override the
|
|
|
|
/// <see cref="AbstractViewContent"/> and override the
|
|
|
|
/// <see cref="IViewContent.BuildNavigationPoint">BuildNavigationPoint</see>
|
|
|
|
/// <see cref="IViewContent.BuildNavPoint">BuildNavigationPoint</see>
|
|
|
|
/// method.</para>
|
|
|
|
/// method.</para>
|
|
|
|
/// <para>
|
|
|
|
/// <para>
|
|
|
|
/// <i>History logic based in part on Orlando Curioso's <i>Code Project</i> article:
|
|
|
|
/// <i>History logic based in part on Orlando Curioso's <i>Code Project</i> article:
|
|
|
@ -194,7 +194,7 @@ namespace ICSharpCode.SharpDevelop |
|
|
|
/// Refactoring this out of Log() allows the NavigationService
|
|
|
|
/// Refactoring this out of Log() allows the NavigationService
|
|
|
|
/// to call this and ensure it will work regardless of the
|
|
|
|
/// to call this and ensure it will work regardless of the
|
|
|
|
/// requested state of loggingSuspended, as in
|
|
|
|
/// requested state of loggingSuspended, as in
|
|
|
|
/// <see cref="ClearHistory"/> where we want to log
|
|
|
|
/// <see cref="ClearHistory()"/> where we want to log
|
|
|
|
/// the current position after clearing the
|
|
|
|
/// the current position after clearing the
|
|
|
|
/// history.
|
|
|
|
/// history.
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
@ -232,7 +232,7 @@ namespace ICSharpCode.SharpDevelop |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a <see cref="List<T>"/> of the <see cref="INavigationPoints"/> that
|
|
|
|
/// Gets a <see cref="List{T}"/> of the <see cref="INavigationPoint">INavigationPoints</see> that
|
|
|
|
/// are currently in the collection.
|
|
|
|
/// are currently in the collection.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public static ICollection<INavigationPoint> Points |
|
|
|
public static ICollection<INavigationPoint> Points |
|
|
@ -327,7 +327,7 @@ namespace ICSharpCode.SharpDevelop |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Navigates the view (i.e. the workbench) to whatever
|
|
|
|
/// Navigates the view (i.e. the workbench) to whatever
|
|
|
|
/// <see cref="INavigationPosition"/> is the current
|
|
|
|
/// <see cref="INavigationPoint"/> is the current
|
|
|
|
/// position in the internal model.
|
|
|
|
/// position in the internal model.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>Factoring this out of code that manipulates
|
|
|
|
/// <remarks>Factoring this out of code that manipulates
|
|
|
@ -372,7 +372,6 @@ namespace ICSharpCode.SharpDevelop |
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Prepares the NavigationService to load a new solution.
|
|
|
|
/// Prepares the NavigationService to load a new solution.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="sender">The fileName of the solution as a <see cref="String"/>.</param>
|
|
|
|
|
|
|
|
static void ProjectService_SolutionLoading(object sender, EventArgs e) |
|
|
|
static void ProjectService_SolutionLoading(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SuspendLogging(); |
|
|
|
SuspendLogging(); |
|
|
@ -381,7 +380,6 @@ namespace ICSharpCode.SharpDevelop |
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Prepares the NavigationService for working with a newly loaded solution
|
|
|
|
/// Prepares the NavigationService for working with a newly loaded solution
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
|
|
|
static void LoadSolutionProjectsThreadEnded(object sender, EventArgs e) |
|
|
|
static void LoadSolutionProjectsThreadEnded(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ResumeLogging(); |
|
|
|
ResumeLogging(); |
|
|
@ -405,6 +403,7 @@ namespace ICSharpCode.SharpDevelop |
|
|
|
/// Respond to changes in filenames by updating points in the history
|
|
|
|
/// Respond to changes in filenames by updating points in the history
|
|
|
|
/// to reflect the change.
|
|
|
|
/// to reflect the change.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="sender"/>
|
|
|
|
/// <param name="e"><see cref="FileRenameEventArgs"/> describing
|
|
|
|
/// <param name="e"><see cref="FileRenameEventArgs"/> describing
|
|
|
|
/// the file rename.</param>
|
|
|
|
/// the file rename.</param>
|
|
|
|
static void FileService_FileRenamed(object sender, FileRenameEventArgs e) |
|
|
|
static void FileService_FileRenamed(object sender, FileRenameEventArgs e) |
|
|
@ -417,7 +416,7 @@ namespace ICSharpCode.SharpDevelop |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Responds to the <see cref="ProjectService"/>.<see cref="SolutionClosed"/> event.
|
|
|
|
/// Responds to the <see cref="ProjectService"/>.<see cref="ProjectService.SolutionClosed"/> event.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
static void ProjectService_SolutionClosed(object sender, EventArgs e) |
|
|
|
static void ProjectService_SolutionClosed(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
{ |
|
|
|