|
|
|
@ -442,9 +442,14 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor |
|
|
|
#region IPositionable implementation
|
|
|
|
#region IPositionable implementation
|
|
|
|
public void JumpTo(int line, int column) |
|
|
|
public void JumpTo(int line, int column) |
|
|
|
{ |
|
|
|
{ |
|
|
|
textAreaControl.ActiveTextAreaControl.CenterViewOn( |
|
|
|
|
|
|
|
line, (int)(0.3 * textAreaControl.ActiveTextAreaControl.TextArea.TextView.VisibleLineCount)); |
|
|
|
|
|
|
|
textAreaControl.ActiveTextAreaControl.JumpTo(line, column); |
|
|
|
textAreaControl.ActiveTextAreaControl.JumpTo(line, column); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// we need to delay this call here because the text editor does not know its height if it was just created
|
|
|
|
|
|
|
|
WorkbenchSingleton.SafeThreadAsyncCall( |
|
|
|
|
|
|
|
delegate { |
|
|
|
|
|
|
|
textAreaControl.ActiveTextAreaControl.CenterViewOn( |
|
|
|
|
|
|
|
line, (int)(0.3 * textAreaControl.ActiveTextAreaControl.TextArea.TextView.VisibleLineCount)); |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int Line { |
|
|
|
public int Line { |
|
|
|
|