diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-02-16 20:09:06 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-02-16 20:09:06 +0300 |
commit | 3ac28dd25204570bd382df079c4ed9701f7bfdb4 (patch) | |
tree | 4f1ce73d38cab9d696f03eeca52c2d0fcc5c04f8 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks | |
parent | 587abfeac70e8551a1c682acf8077be4be3823f4 (diff) |
* MonoDevelop.Ide.Gui/TextEditor.cs:
* MonoDevelop.Ide.Commands/EditCommands.cs:
* MonoDevelop.Ide.Tasks/CommentTasksView.cs:
* MonoDevelop.Ide.StandardHeader/StandardHeaderService.cs:
* MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs:
Implemented a new method for getting comment tags. It is going to
replace some properties of ILanguageBinding.
svn path=/trunk/monodevelop/; revision=151814
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs index a4c06cbd66..7670de2dce 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs @@ -478,10 +478,10 @@ namespace MonoDevelop.Ide.Tasks if (task != null && ! String.IsNullOrEmpty (task.FileName)) { Document doc = IdeApp.Workbench.OpenDocument (task.FileName, Math.Max (1, task.Line), Math.Max (1, task.Column), true); if (doc != null && doc.HasProject && doc.Project is DotNetProject) { - IDotNetLanguageBinding binding = ((DotNetProject)doc.Project).LanguageBinding; - if (! String.IsNullOrEmpty (binding.SingleLineCommentTag)) { + string[] commentTags = TextEditor.GetCommentTags (doc.FileName); + if (commentTags != null && commentTags.Length == 1) { string line = doc.TextEditor.GetLineText (task.Line); - int index = line.IndexOf (binding.SingleLineCommentTag); + int index = line.IndexOf (commentTags[0]); if (index != -1) { doc.TextEditor.JumpTo (task.Line, task.Column); line = line.Substring (0, index); |