Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ReorganizeActiveCodeCommand" /> class.
        /// </summary>
        /// <param name="package">The hosting package.</param>
        internal ReorganizeActiveCodeCommand(CodeMaidPackage package)
            : base(package,
                   new CommandID(PackageGuids.GuidCodeMaidCommandReorganizeActiveCode, PackageIds.CmdIDCodeMaidReorganizeActiveCode))
        {
            CodeReorganizationManager = CodeReorganizationManager.GetInstance(Package);

            _codeReorganizationAvailabilityLogic = CodeReorganizationAvailabilityLogic.GetInstance(Package);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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);
            _undoTransactionHelper = new UndoTransactionHelper(_package, "CodeMaid Reorganize");

            _codeReorganizationAvailabilityLogic = CodeReorganizationAvailabilityLogic.GetInstance(_package);
            _generateRegionLogic = GenerateRegionLogic.GetInstance(_package);
            _insertBlankLinePaddingLogic = InsertBlankLinePaddingLogic.GetInstance(_package);
            _removeRegionLogic = RemoveRegionLogic.GetInstance(_package);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Gets an instance of the <see cref="CodeReorganizationAvailabilityLogic"/> class.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 /// <returns>An instance of the <see cref="CodeReorganizationAvailabilityLogic"/> class.</returns>
 internal static CodeReorganizationAvailabilityLogic GetInstance(CodeMaidPackage package)
 {
     return(_instance ?? (_instance = new CodeReorganizationAvailabilityLogic(package)));
 }
 public static void ClassInitialize(TestContext testContext)
 {
     _codeReorganizationAvailabilityLogic = CodeReorganizationAvailabilityLogic.GetInstance(TestEnvironment.Package);
     Assert.IsNotNull(_codeReorganizationAvailabilityLogic);
 }
 /// <summary>
 /// Gets an instance of the <see cref="CodeReorganizationAvailabilityLogic"/> class.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 /// <returns>An instance of the <see cref="CodeReorganizationAvailabilityLogic"/> class.</returns>
 internal static CodeReorganizationAvailabilityLogic GetInstance(CodeMaidPackage package)
 {
     return _instance ?? (_instance = new CodeReorganizationAvailabilityLogic(package));
 }