[Monodevelop-patches-list] r1466 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: CodeCompletion Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Apr 15 23:18:32 EDT 2004
Author: tberman
Date: 2004-04-15 23:18:32 -0400 (Thu, 15 Apr 2004)
New Revision: 1466
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CodeCompletionDataProvider.cs
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
more stuff
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CodeCompletionDataProvider.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CodeCompletionDataProvider.cs 2004-04-16 02:08:27 UTC (rev 1465)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CodeCompletionDataProvider.cs 2004-04-16 03:18:32 UTC (rev 1466)
@@ -54,14 +54,14 @@
ArrayList completionData = null;
-
+
public ICompletionData[] GenerateCompletionData(string fileName, SourceEditorView textArea, char charTyped, TextMark triggerMark)
{
completionData = new ArrayList();
this.fileName = fileName;
-
+
Gtk.TextIter insertIter = textArea.Buffer.GetIterAtMark (triggerMark);
-
+
// the parser works with 1 based coordinates
caretLineNumber = insertIter.Line + 1;
@@ -86,17 +86,17 @@
//FIXME: I added the null check, #D doesnt need it, why do we?
if (fileName != null) {
results = parserService.Resolve(expression,
- caretLineNumber,
- caretColumn,
- fileName,
- textArea.Buffer.Text);
+ caretLineNumber,
+ caretColumn,
+ fileName,
+ textArea.Buffer.Text);
AddResolveResults(results);
}
}
return (ICompletionData[]) completionData.ToArray (typeof (ICompletionData));
}
-
+
void AddResolveResults(ICollection list)
{
if (list == null) {
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-04-16 02:08:27 UTC (rev 1465)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-04-16 03:18:32 UTC (rev 1466)
@@ -173,7 +173,7 @@
if (triggerIter.Equals (TextIter.Zero)) return;
triggerIter.ForwardChar ();
- completionWindow = new CompletionWindow (this, ParentEditor.DisplayBinding.ContentName, new CodeCompletionDataProvider (true));
+ completionWindow = new CompletionWindow (this, ParentEditor.DisplayBinding.ContentName, new CodeCompletionDataProvider (false));
completionWindow.ShowCompletionWindow (triggerChar, triggerIter, true);
}
More information about the Monodevelop-patches-list
mailing list