/// <summary> /// Initializes a new instance of the <see cref="SpadeContextInsertRegionCommand" /> class. /// </summary> /// <param name="package">The hosting package.</param> internal SpadeContextInsertRegionCommand(CodeMaidPackage package) : base(package, new CommandID(GuidList.GuidCodeMaidCommandSpadeContextInsertRegion, (int)PkgCmdIDList.CmdIDCodeMaidSpadeContextInsertRegion)) { _generateRegionLogic = GenerateRegionLogic.GetInstance(package); _undoTransactionHelper = new UndoTransactionHelper(package, "CodeMaid Insert Region"); }
/// <summary> /// Initializes a new instance of the <see cref="CodeReorganizationManager" /> class. /// </summary> /// <param name="package">The hosting package.</param> private CodeReorganizationManager(CodeMaidPackage package) { _package = package; _codeModelManager = CodeModelManager.GetInstance(_package); _codeReorganizationAvailabilityLogic = CodeReorganizationAvailabilityLogic.GetInstance(_package); _generateRegionLogic = GenerateRegionLogic.GetInstance(_package); _insertBlankLinePaddingLogic = InsertBlankLinePaddingLogic.GetInstance(_package); _removeRegionLogic = RemoveRegionLogic.GetInstance(_package); }
/// <summary> /// Initializes a new instance of the <see cref="CodeReorderManager" /> class. /// </summary> /// <param name="package">The hosting package.</param> private CodeReorderManager(CodeMaidPackage package) { _package = package; _codeModelManager = CodeModelManager.GetInstance(_package); _undoTransactionHelper = new UndoTransactionHelper(_package, "CodeMaid Reorganize"); _generateRegionLogic = GenerateRegionLogic.GetInstance(_package); _insertBlankLinePaddingLogic = InsertBlankLinePaddingLogic.GetInstance(_package); _removeRegionLogic = RemoveRegionLogic.GetInstance(_package); }
/// <summary> /// Gets an instance of the <see cref="GenerateRegionLogic" /> class. /// </summary> /// <param name="package">The hosting package.</param> /// <returns>An instance of the <see cref="GenerateRegionLogic" /> class.</returns> internal static GenerateRegionLogic GetInstance(CodeMaidPackage package) { return(_instance ?? (_instance = new GenerateRegionLogic(package))); }
/// <summary> /// Gets an instance of the <see cref="GenerateRegionLogic" /> class. /// </summary> /// <param name="package">The hosting package.</param> /// <returns>An instance of the <see cref="GenerateRegionLogic" /> class.</returns> internal static GenerateRegionLogic GetInstance(CodeMaidPackage package) { return _instance ?? (_instance = new GenerateRegionLogic(package)); }