|
|
|
@ -43,12 +43,13 @@ namespace CSharpBinding
@@ -43,12 +43,13 @@ namespace CSharpBinding
|
|
|
|
|
ITextEditor editor; |
|
|
|
|
IssueManager inspectionManager; |
|
|
|
|
IList<IContextActionProvider> contextActionProviders; |
|
|
|
|
CodeManipulation codeManipulation; |
|
|
|
|
|
|
|
|
|
public void Attach(ITextEditor editor) |
|
|
|
|
{ |
|
|
|
|
this.editor = editor; |
|
|
|
|
inspectionManager = new IssueManager(editor); |
|
|
|
|
//codeManipulation = new CodeManipulation(editor);
|
|
|
|
|
codeManipulation = new CodeManipulation(editor); |
|
|
|
|
|
|
|
|
|
if (!editor.ContextActionProviders.IsReadOnly) { |
|
|
|
|
contextActionProviders = AddInTree.BuildItems<IContextActionProvider>("/SharpDevelop/ViewContent/TextEditor/C#/ContextActions", null); |
|
|
|
@ -58,7 +59,7 @@ namespace CSharpBinding
@@ -58,7 +59,7 @@ namespace CSharpBinding
|
|
|
|
|
|
|
|
|
|
public void Detach() |
|
|
|
|
{ |
|
|
|
|
//codeManipulation.Dispose();
|
|
|
|
|
codeManipulation.Dispose(); |
|
|
|
|
if (inspectionManager != null) { |
|
|
|
|
inspectionManager.Dispose(); |
|
|
|
|
inspectionManager = null; |
|
|
|
|