Fixed bug introduced in last revision that caused the unit tests to fail.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2690 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Usage: TextAnchor anchor = document.GetLineSegment(lineNumber).CreateAnchor(columnNumber);
anchor.LineNumber and anchor.ColumnNumber are updated when text is inserted/removed in the document. anchor.IsDeleted will be true when the text location containing the anchor was removed.
LineSegment gets an IsDeleted property, so a LineSegment reference can be used as anchor for a line.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2683 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
TextEditor now provides TextChanged event so users do not have to attach to textEditor.Document.DocumentChanged.
Improved the heuristic that determines which comments belong to a class for the "Move class to file" command.
Prevent SharpDevelop from crashing if code-completion cache is corrupted.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2680 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
C# syntax highlighting: add contextual keywords introduced in C# 3.0.
C# parser: support "from T x in e" syntax in query expressions.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2677 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Fixed SD2-980: VB 'For Each' statement not converted correcly to C#
Text editor: Use TextLocation struct instead of System.Drawing.Point to represent line/column pairs.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2659 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
GapTextBufferStrategy: rewrote PlaceGap, fixing a performance issue when deleting text in large documents
DefaultHighlightingStrategy: cache currentLine.Offset because it's not cheap to retrieve (it's an O(lg n) operation)
DefaultDocument.RequestUpdate: when doing a WholeTextArea update, skip all other updates because they would only duplicate the work done by the WholeTextArea update
Except for the load time, the performance editing large .txt files is now good; though the text editor takes a huge amount of memory (tested with a 1,000,000 lines file).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2600 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Implemented SD2-1280/SD2-1320: Scroll completion window to move selected item to the middle
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2516 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Fixed the mouse cursor staying hidden behind the CodeCompletionWindow or InsightWindow until moved out.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2499 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
(but keeping change to TextArea.cs - mouse cursor is arrow when it passes over selected text)
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2482 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Replace DoEvents() with a timer to make waiting for the second clipboard set operation non-blocking.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2432 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Keep the Z-Order when moving multiple elements between containers.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2421 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
CecilReader now reads attributes for class members.
BooProject now references Boo.Lang.Useful so that code-completion can find it.
Fixed UnknownScriptTag in HTML-Mode.xshd.
Fixed possible deadlock in SearchClassReturnType.cs
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2384 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Make bookmarks pad not show breakpoints and breakpoints pad not show bookmarks.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2367 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61