Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Nov 13, 2023
1 parent c86c041 commit 98d8f37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ public async Task OpenLastProjectsFileAsync()
}
}

public void RegisterContextMenu(Func<IList<IProjectEntry>, IEnumerable<IMenuItem>?> construct)
public void RegisterConstructContextMenu(Func<IList<IProjectEntry>, IEnumerable<IMenuItem>?> construct)
{
_registerContextMenu.Add(construct);
}
Expand Down
2 changes: 1 addition & 1 deletion src/OneWare.Shared/Services/IProjectExplorerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ public interface IProjectExplorerService : IDockable, INotifyPropertyChanged
public Task SaveProjectAsync(IProjectRoot project);
public Task SaveLastProjectsFileAsync();
public Task OpenLastProjectsFileAsync();
public void RegisterContextMenu(Func<IList<IProjectEntry>, IEnumerable<IMenuItem>?> construct);
public void RegisterConstructContextMenu(Func<IList<IProjectEntry>, IEnumerable<IMenuItem>?> construct);
}
2 changes: 1 addition & 1 deletion src/OneWare.Vhdl/VhdlModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void OnInitialized(IContainerProvider containerProvider)

containerProvider.Resolve<NodeProviderService>().RegisterNodeProvider(new VhdlNodeProvider(), ".vhd", ".vhdl");

containerProvider.Resolve<IProjectExplorerService>().RegisterContextMenu(x =>
containerProvider.Resolve<IProjectExplorerService>().RegisterConstructContextMenu(x =>
{
if (x.Count == 1 && x.First() is IProjectFile { Extension: ".vhd" or ".vhdl" })
{
Expand Down

0 comments on commit 98d8f37

Please sign in to comment.