diff options
Diffstat (limited to 'src/wixext/UIExtensionData.cs')
-rw-r--r-- | src/wixext/UIExtensionData.cs | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/src/wixext/UIExtensionData.cs b/src/wixext/UIExtensionData.cs index a833b82b..327d20c8 100644 --- a/src/wixext/UIExtensionData.cs +++ b/src/wixext/UIExtensionData.cs | |||
@@ -1,43 +1,23 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | namespace WixToolset.Extensions | 3 | namespace WixToolset.UI |
4 | { | 4 | { |
5 | using System; | ||
6 | using System.Reflection; | ||
7 | using WixToolset.Data; | 5 | using WixToolset.Data; |
8 | using WixToolset.Extensibility; | 6 | using WixToolset.Extensibility; |
9 | 7 | ||
10 | /// <summary> | 8 | public sealed class UIExtensionData : BaseExtensionData |
11 | /// The WiX Toolset UI Extension. | ||
12 | /// </summary> | ||
13 | public sealed class UIExtensionData : ExtensionData | ||
14 | { | 9 | { |
15 | /// <summary> | 10 | public override string DefaultCulture => "en-US"; |
16 | /// Gets the default culture. | ||
17 | /// </summary> | ||
18 | /// <value>The default culture.</value> | ||
19 | public override string DefaultCulture | ||
20 | { | ||
21 | get { return "en-us"; } | ||
22 | } | ||
23 | 11 | ||
24 | /// <summary> | 12 | public override bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) |
25 | /// Gets the library associated with this extension. | ||
26 | /// </summary> | ||
27 | /// <param name="tableDefinitions">The table definitions to use while loading the library.</param> | ||
28 | /// <returns>The loaded library.</returns> | ||
29 | public override Library GetLibrary(TableDefinitionCollection tableDefinitions) | ||
30 | { | 13 | { |
31 | return UIExtensionData.GetExtensionLibrary(tableDefinitions); | 14 | tupleDefinition = null; |
15 | return tupleDefinition != null; | ||
32 | } | 16 | } |
33 | 17 | ||
34 | /// <summary> | 18 | public override Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) |
35 | /// Internal mechanism to access the extension's library. | ||
36 | /// </summary> | ||
37 | /// <returns>Extension's library.</returns> | ||
38 | internal static Library GetExtensionLibrary(TableDefinitionCollection tableDefinitions) | ||
39 | { | 19 | { |
40 | return ExtensionData.LoadLibraryHelper(Assembly.GetExecutingAssembly(), "WixToolset.Extensions.Data.ui.wixlib", tableDefinitions); | 20 | return Intermediate.Load(typeof(UIExtensionData).Assembly, "WixToolset.UI.ui.wixlib", tupleDefinitions); |
41 | } | 21 | } |
42 | } | 22 | } |
43 | } | 23 | } |