Page Comparison - 2.3 Actions and Menu Items (v.4 vs v.5)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecsharp
[ShellComponent]
public class CustomActionHandlerManager
{
  public CustomActionHandlerManager(IActionManagerLifetime actionManagerlifetime, LifetimeIActionManager lifetimeactionManager)
  {
    var classHierarchy = actionManager.GetUpdatableAction("TypeHierarchy.ClassHierarchy");
    if (classHierarchy != null)
      classHierarchy.AddHandler(lifetime, new WholeMembersHierarchyActions());
  }
}