Browse Source

add missing CodeGenerationService to refactoring context: fixes availability of "implement interface" et al.

pull/315/head
Siegfried Pammer 12 years ago
parent
commit
16afb54ed5
  1. 1
      src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.csproj
  2. 12
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/SDCodeGenerationService.cs
  3. 1
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/SDRefactoringContext.cs

1
src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.csproj

@ -121,6 +121,7 @@ @@ -121,6 +121,7 @@
</Compile>
<Compile Include="Src\Refactoring\PropertyOrFieldWrapper.cs" />
<Compile Include="Src\Refactoring\RenameFileToMatchTypeNameContextAction.cs" />
<Compile Include="Src\Refactoring\SDCodeGenerationService.cs" />
<Compile Include="Src\Refactoring\SDNamingConventionService.cs" />
<Compile Include="Src\Refactoring\SDRedundantUsingIssue.cs" />
<Compile Include="Src\Refactoring\EditorScript.cs" />

12
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/SDCodeGenerationService.cs

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
// 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.CSharp;
namespace CSharpBinding.Refactoring
{
sealed class SDCodeGenerationService : DefaultCodeGenerationService
{
}
}

1
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/SDRefactoringContext.cs

@ -90,6 +90,7 @@ namespace CSharpBinding.Refactoring @@ -90,6 +90,7 @@ namespace CSharpBinding.Refactoring
{
this.Services = new ServiceContainer(SD.Services);
this.Services.AddService(typeof(NamingConventionService), new SDNamingConventionService());
this.Services.AddService(typeof(CodeGenerationService), new SDCodeGenerationService());
}
public override bool Supports(Version version)

Loading…
Cancel
Save