Browse Source

clean up

pull/315/head
Siegfried Pammer 12 years ago
parent
commit
7ef4b9fbb5
  1. 1
      src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.csproj
  2. 24
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/CreatePropertiesCommand.cs
  3. 4
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/EditorScript.cs

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

@ -90,7 +90,6 @@ @@ -90,7 +90,6 @@
<Compile Include="Src\Refactoring\AbstractInlineRefactorDialog.cs" />
<Compile Include="Src\Refactoring\ConvertInterfaceToAbstractClassContextAction.cs" />
<Compile Include="Src\Refactoring\CreateProperties.cs" />
<Compile Include="Src\Refactoring\CreatePropertiesCommand.cs" />
<Compile Include="Src\Refactoring\CreatePropertiesDialog.xaml.cs">
<DependentUpon>CreatePropertiesDialog.xaml</DependentUpon>
</Compile>

24
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/CreatePropertiesCommand.cs

@ -1,24 +0,0 @@ @@ -1,24 +0,0 @@
// 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.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Snippets;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.SharpDevelop.Refactoring;
namespace CSharpBinding.Refactoring
{
public class CreatePropertiesCommand // : AbstractRefactoringCommand
{
// protected override void Run(ITextEditor textEditor, RefactoringProvider provider)
// {
// new Snippet {
// Elements = {
// new InlineRefactorSnippetElement(context => CreateProperties.CreateDialog(context), "")
// }
// }.Insert((TextArea)textEditor.GetService(typeof(TextArea)));
// }
}
}

4
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/EditorScript.cs

@ -117,7 +117,7 @@ namespace CSharpBinding.Refactoring @@ -117,7 +117,7 @@ namespace CSharpBinding.Refactoring
layer.Exited += delegate(object s, InsertionCursorEventArgs args) {
if (args.Success) {
if (args.InsertionPoint.LineAfter == NewLineInsertion.None &&
args.InsertionPoint.LineBefore == NewLineInsertion.None && nodes.Count () > 1) {
args.InsertionPoint.LineBefore == NewLineInsertion.None && nodes.Count > 1) {
args.InsertionPoint.LineAfter = NewLineInsertion.BlankLine;
}
foreach (var node in nodes.Reverse ()) {
@ -127,7 +127,7 @@ namespace CSharpBinding.Refactoring @@ -127,7 +127,7 @@ namespace CSharpBinding.Refactoring
var delta = args.InsertionPoint.Insert (editor.Document, output.Text);
output.RegisterTrackedSegments (this, delta + offset);
}
tcs.SetResult (this);
tcs.SetResult(this);
}
area.TextView.Layers.Remove(layer);
layer.Dispose();

Loading…
Cancel
Save