-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMxLintPaneExtension.cs
28 lines (23 loc) · 1 KB
/
MxLintPaneExtension.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.ComponentModel.Composition;
using Mendix.StudioPro.ExtensionsAPI.Services;
using Mendix.StudioPro.ExtensionsAPI.UI.Services;
using Mendix.StudioPro.ExtensionsAPI.UI.DockablePane;
namespace com.cinaq.MxLintExtension;
[Export(typeof(DockablePaneExtension))]
public class MxLintPaneExtension : DockablePaneExtension
{
private readonly ILogService _logService;
public const string ID = "com-cinaq-mxlint-extension";
public override string Id => ID;
private readonly IDockingWindowService _dockingWindowService;
[ImportingConstructor]
public MxLintPaneExtension(IDockingWindowService dockingWindowService, ILogService logService)
{
_logService = logService;
_dockingWindowService = dockingWindowService;
}
public override DockablePaneViewModelBase Open()
{
return new MxLintPaneExtensionWebViewModel(new Uri(Path.Combine(WebServerBaseUrl.AbsoluteUri,"wwwroot")), () => CurrentApp, _logService, _dockingWindowService) { Title = "MxLint" };
}
}