Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Remove IBindingInfo class. There is no need for a public interface be…
Browse files Browse the repository at this point in the history
…cause CommandManager can't handle anything else but CommandBindingInfo or InputBindingInfo

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/shortcuts@4607 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
  • Loading branch information
sandrejev committed Aug 6, 2009
1 parent a94fa24 commit 9b86c2f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 59 deletions.
Expand Up @@ -13,7 +13,7 @@ namespace ICSharpCode.Core.Presentation
/// <summary>
/// Base class for <see cref="CommandBindingInfo" /> and <see cref="InputBindingInfo" />
/// </summary>
abstract public class BindingInfoBase : IBindingInfo
abstract public class BindingInfoBase
{
private BindingGroupCollection _groups;
private string _ownerInstanceName;
Expand Down
Expand Up @@ -71,7 +71,7 @@ public static BindingInfoTemplate Create(string ownerInstanceName, string ownerT
/// </summary>
/// <param name="bindingInfo">Provided binding info</param>
/// <returns>Created <see cref="BndingInfoTemplate" /> instance</returns>
public static BindingInfoTemplate CreateFromIBindingInfo(IBindingInfo bindingInfo)
public static BindingInfoTemplate CreateFromIBindingInfo(BindingInfoBase bindingInfo)
{
var tpl = new BindingInfoTemplate();
tpl._ownerInstanceName = bindingInfo.OwnerInstanceName;
Expand Down

This file was deleted.

Expand Up @@ -12,30 +12,32 @@ public class WpfCommandWrapper : System.Windows.Input.ICommand
ICommand command;

/// <summary>
/// Constructor
/// Creates instance of <see cref="WpfCommandWrapper" />
/// </summary>
/// <param name="command">SharpDevelop native command</param>
public WpfCommandWrapper(ICommand command)
public WpfCommandWrapper(ICSharpCode.Core.ICommand command)
{
this.command = command;
}

/// <see cref="System.Windows.Input.ICommand.CanExecuteChanged">
/// <summary>
/// Occurs when <see cref="CanExecute" /> returned value changes
///
/// Not used because SharpDevelop's native command implementation
/// doesn't support it
/// </see>
/// </summary>
public event EventHandler CanExecuteChanged {
add { }
remove { }
}

/// <see cref="System.Windows.Input.ICommand.Execute(object)" />
/// <inheritdoc />
public void Execute(object parameter)
{
command.Run();
}

/// <see cref="System.Windows.Input.ICommand.CanExecute(object)" />
/// <inheritdoc />
public bool CanExecute(object parameter)
{
return true;
Expand Down
Expand Up @@ -80,7 +80,6 @@
<Compile Include="CommandsService\Events\NotifyBindingsChangedEvent.cs" />
<Compile Include="CommandsService\Events\NotifyGesturesChangedEvent.cs" />
<Compile Include="CommandsService\Events\NotifyUserGestureProfileChangedEvent.cs" />
<Compile Include="CommandsService\IBindingInfo.cs" />
<Compile Include="CommandsService\InputBindingCategory.cs" />
<Compile Include="CommandsService\InputBindingInfo.cs" />
<Compile Include="CommandsService\Profile\UserGestureManager.cs" />
Expand Down

0 comments on commit 9b86c2f

Please sign in to comment.