Skip to content

Commit 149b0d5

Browse files
committed
Update extension for worksheet export
Included other extensions to standardize extensions.
1 parent bcf0c32 commit 149b0d5

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

Rubberduck.Core/UI/CodeExplorer/Commands/ExportCommand.cs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Rubberduck.UI.Command;
88
using Rubberduck.VBEditor;
99
using Rubberduck.VBEditor.ComManagement;
10+
using Rubberduck.VBEditor.Extensions;
1011
using Rubberduck.VBEditor.SafeComWrappers;
1112
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
1213

@@ -16,22 +17,22 @@ public class ExportCommand : CommandBase
1617
{
1718
private static readonly Dictionary<ComponentType, string> VBAExportableFileExtensions = new Dictionary<ComponentType, string>
1819
{
19-
{ ComponentType.StandardModule, ".bas" },
20-
{ ComponentType.ClassModule, ".cls" },
21-
{ ComponentType.Document, ".cls" },
22-
{ ComponentType.UserForm, ".frm" }
20+
{ ComponentType.StandardModule, ComponentTypeExtensions.StandardExtension },
21+
{ ComponentType.ClassModule, ComponentTypeExtensions.ClassExtension },
22+
{ ComponentType.Document, ComponentTypeExtensions.DocClassExtension },
23+
{ ComponentType.UserForm, ComponentTypeExtensions.FormExtension }
2324
};
2425

2526
private static readonly Dictionary<ComponentType, string> VB6ExportableFileExtensions = new Dictionary<ComponentType, string>
2627
{
27-
{ ComponentType.StandardModule, ".bas" },
28-
{ ComponentType.ClassModule, ".cls" },
29-
{ ComponentType.VBForm, ".frm" },
30-
{ ComponentType.MDIForm, ".frm" },
31-
{ ComponentType.UserControl, ".ctl" },
32-
{ ComponentType.DocObject, ".dob" },
28+
{ ComponentType.StandardModule, ComponentTypeExtensions.StandardExtension },
29+
{ ComponentType.ClassModule, ComponentTypeExtensions.ClassExtension },
30+
{ ComponentType.VBForm, ComponentTypeExtensions.FormExtension },
31+
{ ComponentType.MDIForm, ComponentTypeExtensions.FormExtension },
32+
{ ComponentType.UserControl, ComponentTypeExtensions.UserControlExtension },
33+
{ ComponentType.DocObject, ComponentTypeExtensions.DocObjectExtension },
3334
{ ComponentType.ActiveXDesigner, ".dsr" },
34-
{ ComponentType.PropPage, ".pag" },
35+
{ ComponentType.PropPage, ComponentTypeExtensions.PropertyPageExtension },
3536
{ ComponentType.ResFile, ".res" },
3637
};
3738

0 commit comments

Comments
 (0)