// 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 System.Threading.Tasks;
using System.Windows;
namespace ICSharpCode.SharpDevelop.Refactoring
{
///
/// Context action.
///
public interface IContextAction
{
///
/// Gets the provider that was used to create this action.
///
IContextActionProvider Provider { get; }
///
/// Returns the name displayed in the context action's popup.
///
/// Refactoring context that can be used by the context action to create the display name.
string GetDisplayName(EditorRefactoringContext context);
///
/// Executes this action. Called when this action is selected from the context actions popup.
///
void Execute(EditorRefactoringContext context);
}
}