|
|
|
|
@ -44,6 +44,7 @@ namespace CSharpBinding.Refactoring
@@ -44,6 +44,7 @@ namespace CSharpBinding.Refactoring
|
|
|
|
|
readonly ITextEditor editor; |
|
|
|
|
readonly ITextSource textSource; |
|
|
|
|
readonly TextLocation location; |
|
|
|
|
readonly TextEditorOptions editorOptions; |
|
|
|
|
IDocument document; |
|
|
|
|
int selectionStart, selectionLength; |
|
|
|
|
|
|
|
|
|
@ -86,6 +87,7 @@ namespace CSharpBinding.Refactoring
@@ -86,6 +87,7 @@ namespace CSharpBinding.Refactoring
|
|
|
|
|
this.selectionStart = selectionStart; |
|
|
|
|
this.selectionLength = selectionLength; |
|
|
|
|
this.location = location; |
|
|
|
|
this.editorOptions = SD.EditorControlService.GlobalOptions.ToEditorOptions(); |
|
|
|
|
InitializeServices(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -99,6 +101,7 @@ namespace CSharpBinding.Refactoring
@@ -99,6 +101,7 @@ namespace CSharpBinding.Refactoring
|
|
|
|
|
this.selectionStart = editor.SelectionStart; |
|
|
|
|
this.selectionLength = editor.SelectionLength; |
|
|
|
|
this.location = location; |
|
|
|
|
this.editorOptions = editor.ToEditorOptions(); |
|
|
|
|
InitializeServices(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -131,6 +134,12 @@ namespace CSharpBinding.Refactoring
@@ -131,6 +134,12 @@ namespace CSharpBinding.Refactoring
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override TextEditorOptions TextEditorOptions { |
|
|
|
|
get { |
|
|
|
|
return editorOptions; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public IDocument Document { |
|
|
|
|
get { |
|
|
|
|
IDocument result = LazyInit.VolatileRead(ref document); |
|
|
|
|
|