This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a global blueprint manager command which displays the globally …
…configured blueprint manager rather than the per-project one
- Loading branch information
Malware
committed
Aug 12, 2017
1 parent
21894be
commit 40a0f0e
Showing
8 changed files
with
73 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using Malware.MDKServices; | ||
using MDK.Resources; | ||
using MDK.Views.BlueprintManager; | ||
using MDK.VisualStudio; | ||
using Microsoft.VisualStudio.Shell; | ||
using Microsoft.VisualStudio.Shell.Interop; | ||
|
||
namespace MDK.Commands | ||
{ | ||
sealed class GlobalBlueprintManagerCommand : Command | ||
{ | ||
public GlobalBlueprintManagerCommand(ExtendedPackage package) : base(package) | ||
{ } | ||
|
||
public override Guid GroupId { get; } = CommandGroups.MDKGroup; | ||
|
||
public override int Id { get; } = CommandIds.GlobalBlueprintManager; | ||
|
||
protected override void OnBeforeQueryStatus() | ||
{ } | ||
|
||
protected override void OnExecute() | ||
{ | ||
var package = (MDKPackage)Package; | ||
var model = new BlueprintManagerDialogModel | ||
{ | ||
BlueprintPath = package.Options.GetActualOutputPath() | ||
}; | ||
BlueprintManagerDialog.ShowDialog(model); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters