#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

73 lines
2.0 KiB

// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using ICSharpCode.NRefactory;
using ICSharpCode.SharpDevelop.Dom;
namespace ICSharpCode.PackageManagement.EnvDTE
{
public class EditPoint : TextPoint, global::EnvDTE.EditPoint
{
// IRefactoringDocument document;
// IRefactoringDocumentView documentView;
internal EditPoint(string fileName, TextLocation location, IDocumentLoader documentLoader)
: base(fileName, location, documentLoader)
{
}
public void ReplaceText(object pointOrCount, string text, int flags)
{
ReplaceText((TextPoint)pointOrCount, text, (global::EnvDTE.vsEPReplaceTextOptions)flags);
}
void ReplaceText(TextPoint endPoint, string text, global::EnvDTE.vsEPReplaceTextOptions textFormatOptions)
{
throw new NotImplementedException();
// OpenDocument();
// int offset = GetStartOffset();
// int endOffset = GetEndOffset(endPoint);
// document.Replace(offset, endOffset - offset, text);
// IndentReplacedText(text);
}
// void OpenDocument()
// {
// documentView = DocumentLoader.LoadRefactoringDocumentView(FilePosition.FileName);
// document = documentView.RefactoringDocument;
// }
//
// int GetStartOffset()
// {
// return document.PositionToOffset(Line, LineCharOffset);
// }
//
// int GetEndOffset(TextPoint endPoint)
// {
// return document.PositionToOffset(endPoint.Line, endPoint.LineCharOffset);
// }
//
// /// <summary>
// /// Indents all lines apart from the first one since it is assumed
// /// that the first line had the correct indentation.
// /// </summary>
// void IndentReplacedText(string text)
// {
// int lineCount = GetLineCount(text);
// if (lineCount > 1) {
// documentView.IndentLines(Line + 1, Line + lineCount);
// }
// }
//
// int GetLineCount(string text)
// {
// return text.Split('\n').Length;
// }
//
public void Insert(string text)
{
throw new NotImplementedException();
}
}
}