Skip to content

Commit

Permalink
removed ShowInExplorer command
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaun committed Dec 1, 2015
1 parent b3affd6 commit 85a21c8
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 74 deletions.
19 changes: 0 additions & 19 deletions Helpers/SolutionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,6 @@ public static VCProjectWrapper GetProjectOfSelection(VCFileUtilsPackage package)
return projects[0];
}

public static string GetDirectoryOfSelection(VCFileUtilsPackage package)
{
var directories = GetSelectedItems(package)
.Where(item => item.FullPath != null)
.Select(item => (item is VCFilterWrapper) ? item.FullPath : Path.GetDirectoryName(item.FullPath))
.ToList();

if (directories.Count() == 0)
return null;

if (directories.Any(dir => dir != directories[0]))
return null;

if (!Directory.Exists(directories[0]))
return null;

return directories[0];
}

public static string GetSelectedDirectory(VCFileUtilsPackage package)
{
var selection = GetSelectedItems(package)
Expand Down
33 changes: 0 additions & 33 deletions Integration/Commands/ShowInExplorerCommand.cs

This file was deleted.

1 change: 0 additions & 1 deletion Integration/PkgCmdIDList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ public static class PkgCmdIDList
{
public const uint CmdIDSetProjectRoot = 0x2000;
public const uint CmdIDOrganizeFiles = 0x2010;
public const uint CmdIDShowInExplorer = 0x2020;
public const uint CmdIDRemoveEmptyFilters = 0x2030;
public const uint CmdIDReAddFiles = 0x2040;
}
Expand Down
1 change: 0 additions & 1 deletion VCFileUtils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
<Compile Include="Integration\Commands\ReAddFilesCommand.cs" />
<Compile Include="Integration\Commands\RemoveEmptyFiltersCommand.cs" />
<Compile Include="Integration\Commands\SetProjectRootCommand.cs" />
<Compile Include="Integration\Commands\ShowInExplorerCommand.cs" />
<Compile Include="Integration\GuidList.cs" />
<Compile Include="Integration\PkgCmdIDList.cs" />
<Compile Include="Logic\FileUtils.cs" />
Expand Down
1 change: 0 additions & 1 deletion VCFileUtilsPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ private void RegisterCommands()
{
menuCommandService.AddCommand(new OrganizeFilesCommand(this));
menuCommandService.AddCommand(new SetProjectRootCommand(this));
menuCommandService.AddCommand(new ShowInExplorerCommand(this));
menuCommandService.AddCommand(new RemoveEmptyFiltersCommand(this));
menuCommandService.AddCommand(new ReAddFilesCommand(this));
}
Expand Down
18 changes: 0 additions & 18 deletions VCFileUtilsPackage.vsct
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@
</Menus>

<Buttons>
<Button guid="GuidVCFileUtilsCommandSet" id="CmdIDShowInExplorer" priority="0x0100" type="Button">
<Parent guid="GuidVCFileUtilsCommandSet" id="GroupIDFileUtils" />
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<ButtonText>Show in &amp;Explorer</ButtonText>
</Strings>
</Button>

<Button guid="GuidVCFileUtilsCommandSet" id="CmdIDOrganizeFiles" priority="0x0100" type="Button">
<Parent guid="GuidVCFileUtilsCommandSet" id="SubGroupIDFileUtils1" />
<CommandFlag>DynamicVisibility</CommandFlag>
Expand All @@ -47,15 +39,6 @@
<ButtonText>Set Project &amp;Root...</ButtonText>
</Strings>
</Button>
<!--
<Button guid="GuidVCFileUtilsCommandSet" id="CmdIDAddFilesOrganized" priority="0x0200" type="Button">
<Parent guid="GuidVCFileUtilsCommandSet" id="SubGroupIDFileUtils1" />
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<ButtonText>&amp;Add Files Organized...</ButtonText>
</Strings>
</Button>
-->
<Button guid="GuidVCFileUtilsCommandSet" id="CmdIDRemoveEmptyFilters" priority="0x0100" type="Button">
<Parent guid="GuidVCFileUtilsCommandSet" id="SubGroupIDFileUtils2" />
<CommandFlag>DynamicVisibility</CommandFlag>
Expand Down Expand Up @@ -96,7 +79,6 @@

<IDSymbol name="CmdIDSetProjectRoot" value="0x2000" />
<IDSymbol name="CmdIDOrganizeFiles" value="0x2010" />
<IDSymbol name="CmdIDShowInExplorer" value="0x2020" />
<IDSymbol name="CmdIDRemoveEmptyFilters" value="0x2030" />
<IDSymbol name="CmdIDReAddFiles" value="0x2040" />
</GuidSymbol>
Expand Down
2 changes: 1 addition & 1 deletion source.extension.vsixmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="VCFileUtils.reloZid.808f1728-2291-48bf-a389-1030789052cd" Version="1.0" Language="en-US" Publisher="reloZid" />
<DisplayName>VC File Utililities</DisplayName>
<DisplayName>VC File Utilities</DisplayName>
<Description xml:space="preserve">Visual Studio extension which organizes files in a VC project.</Description>
</Metadata>
<Installation>
Expand Down

0 comments on commit 85a21c8

Please sign in to comment.