Skip to content

Commit

Permalink
Fixed compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogel612 committed Jul 13, 2016
1 parent f2cb417 commit 04dd638
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 8 deletions.
14 changes: 7 additions & 7 deletions RetailCoder.VBE/Rubberduck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@
<Compile Include="UI\CodeExplorer\Commands\AddClassModuleCommand.cs" />
<Compile Include="UI\CodeExplorer\Commands\AddStdModuleCommand.cs" />
<Compile Include="UI\CodeExplorer\Commands\AddTestModuleCommand.cs" />
<Compile Include="UI\Command\MenuItems\ParentMenus\ToolsParentMenu.cs" />
<Compile Include="UI\Command\MenuItems\RegexAssistantCommand.cs" />
<Compile Include="UI\Command\MenuItems\RegexAssistantCommandMenuItem.cs" />
<Compile Include="UI\Command\RegexAssistantCommand.cs" />
<Compile Include="UI\Command\MenuItems\ToolsParentMenu.cs" />
<Compile Include="UI\Controls\LinkButton.xaml.cs">
<DependentUpon>LinkButton.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -708,6 +708,11 @@
<DesignTime>True</DesignTime>
<DependentUpon>RubberduckUI.de.resx</DependentUpon>
</Compile>
<Compile Include="UI\RubberduckUI.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>RubberduckUI.resx</DependentUpon>
</Compile>
<Compile Include="UI\RubberduckUI.ja.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
Expand Down Expand Up @@ -832,11 +837,6 @@
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="UI\RubberduckUI.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>RubberduckUI.resx</DependentUpon>
</Compile>
<Compile Include="UI\SourceControl\BranchesView.xaml.cs">
<DependentUpon>BranchesView.xaml</DependentUpon>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public NavigateParentMenu(IEnumerable<IMenuItem> items)
public enum NavigationMenuItemDisplayOrder
{
CodeExplorer,
//ToDoExplorer,
RegexSearchReplace,
FindSymbol,
FindAllReferences,
Expand Down
25 changes: 25 additions & 0 deletions RetailCoder.VBE/UI/Command/MenuItems/RegexAssistantCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using NLog;
using Rubberduck.UI.RegexAssistant;
using System.Runtime.InteropServices;

namespace Rubberduck.UI.Command
{
/// <summary>
/// A command that displays the RegexAssistantDialog
/// </summary>
[ComVisible(false)]
class RegexAssistantCommand : CommandBase
{
public RegexAssistantCommand() : base (LogManager.GetCurrentClassLogger())
{
}

protected override void ExecuteImpl(object parameter)
{
using (var window = new RegexAssistantDialog())
{
window.ShowDialog();
}
}
}
}
29 changes: 29 additions & 0 deletions RetailCoder.VBE/UI/Command/MenuItems/ToolsParentMenu.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System.Collections.Generic;

namespace Rubberduck.UI.Command.MenuItems.ParentMenus
{
public class ToolsParentMenu : ParentMenuItemBase
{
public ToolsParentMenu(IEnumerable<IMenuItem> items)
: base("ToolsMenu", items)
{
}

public override int DisplayOrder
{
get
{
return (int)RubberduckMenuItemDisplayOrder.Tools;
}
}


}

public enum ToolsMenuItemDisplayOrder
{
SourceControl,
ToDoExplorer,
RegexAssistant,
}
}

0 comments on commit 04dd638

Please sign in to comment.