Skip to content

Commit 04dd638

Browse files
committed
Fixed compilation errors
1 parent f2cb417 commit 04dd638

File tree

4 files changed

+61
-8
lines changed

4 files changed

+61
-8
lines changed

RetailCoder.VBE/Rubberduck.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@
433433
<Compile Include="UI\CodeExplorer\Commands\AddClassModuleCommand.cs" />
434434
<Compile Include="UI\CodeExplorer\Commands\AddStdModuleCommand.cs" />
435435
<Compile Include="UI\CodeExplorer\Commands\AddTestModuleCommand.cs" />
436-
<Compile Include="UI\Command\MenuItems\ParentMenus\ToolsParentMenu.cs" />
436+
<Compile Include="UI\Command\MenuItems\RegexAssistantCommand.cs" />
437437
<Compile Include="UI\Command\MenuItems\RegexAssistantCommandMenuItem.cs" />
438-
<Compile Include="UI\Command\RegexAssistantCommand.cs" />
438+
<Compile Include="UI\Command\MenuItems\ToolsParentMenu.cs" />
439439
<Compile Include="UI\Controls\LinkButton.xaml.cs">
440440
<DependentUpon>LinkButton.xaml</DependentUpon>
441441
</Compile>
@@ -708,6 +708,11 @@
708708
<DesignTime>True</DesignTime>
709709
<DependentUpon>RubberduckUI.de.resx</DependentUpon>
710710
</Compile>
711+
<Compile Include="UI\RubberduckUI.Designer.cs">
712+
<AutoGen>True</AutoGen>
713+
<DesignTime>True</DesignTime>
714+
<DependentUpon>RubberduckUI.resx</DependentUpon>
715+
</Compile>
711716
<Compile Include="UI\RubberduckUI.ja.Designer.cs">
712717
<AutoGen>True</AutoGen>
713718
<DesignTime>True</DesignTime>
@@ -832,11 +837,6 @@
832837
<AutoGen>True</AutoGen>
833838
<DesignTime>True</DesignTime>
834839
</Compile>
835-
<Compile Include="UI\RubberduckUI.Designer.cs">
836-
<AutoGen>True</AutoGen>
837-
<DesignTime>True</DesignTime>
838-
<DependentUpon>RubberduckUI.resx</DependentUpon>
839-
</Compile>
840840
<Compile Include="UI\SourceControl\BranchesView.xaml.cs">
841841
<DependentUpon>BranchesView.xaml</DependentUpon>
842842
</Compile>

RetailCoder.VBE/UI/Command/MenuItems/ParentMenus/NavigateParentMenu.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public NavigateParentMenu(IEnumerable<IMenuItem> items)
1515
public enum NavigationMenuItemDisplayOrder
1616
{
1717
CodeExplorer,
18-
//ToDoExplorer,
1918
RegexSearchReplace,
2019
FindSymbol,
2120
FindAllReferences,
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using NLog;
2+
using Rubberduck.UI.RegexAssistant;
3+
using System.Runtime.InteropServices;
4+
5+
namespace Rubberduck.UI.Command
6+
{
7+
/// <summary>
8+
/// A command that displays the RegexAssistantDialog
9+
/// </summary>
10+
[ComVisible(false)]
11+
class RegexAssistantCommand : CommandBase
12+
{
13+
public RegexAssistantCommand() : base (LogManager.GetCurrentClassLogger())
14+
{
15+
}
16+
17+
protected override void ExecuteImpl(object parameter)
18+
{
19+
using (var window = new RegexAssistantDialog())
20+
{
21+
window.ShowDialog();
22+
}
23+
}
24+
}
25+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System.Collections.Generic;
2+
3+
namespace Rubberduck.UI.Command.MenuItems.ParentMenus
4+
{
5+
public class ToolsParentMenu : ParentMenuItemBase
6+
{
7+
public ToolsParentMenu(IEnumerable<IMenuItem> items)
8+
: base("ToolsMenu", items)
9+
{
10+
}
11+
12+
public override int DisplayOrder
13+
{
14+
get
15+
{
16+
return (int)RubberduckMenuItemDisplayOrder.Tools;
17+
}
18+
}
19+
20+
21+
}
22+
23+
public enum ToolsMenuItemDisplayOrder
24+
{
25+
SourceControl,
26+
ToDoExplorer,
27+
RegexAssistant,
28+
}
29+
}

0 commit comments

Comments
 (0)