コード例 #1
0
ファイル: Driver.cs プロジェクト: pragmatrix/BuildOnSave
 public Driver(DTE dte, BuildType buildType, BackgroundBuild2 backgroundBuild, DriverUI ui)
 {
     _dte = dte;
     _solution = _dte.Solution;
     BuildType = buildType;
     _backgroundBuild = backgroundBuild;
     _ui = ui;
     _context = SynchronizationContext.Current;
 }
コード例 #2
0
ファイル: Driver.cs プロジェクト: pragmatrix/BuildOnSave
 public Driver(DTE dte, BuildType buildType, BackgroundBuild2 backgroundBuild, DriverUI ui)
 {
     _dte             = dte;
     _solution        = _dte.Solution;
     BuildType        = buildType;
     _backgroundBuild = backgroundBuild;
     _ui      = ui;
     _context = SynchronizationContext.Current;
 }
コード例 #3
0
 public Driver(DTE dte, SolutionOptions options, BackgroundBuild2 backgroundBuild, DriverUI ui)
 {
     _dte             = dte;
     _solution        = _dte.Solution;
     _options         = options;
     _backgroundBuild = backgroundBuild;
     _ui      = ui;
     _context = SynchronizationContext.Current;
 }
コード例 #4
0
        void connectDriver(SolutionOptions options)
        {
            if (_driver_ != null)
            {
                return;
            }

            var backgroundBuild = new BackgroundBuild2(_dte, _outputPane);
            var ui     = new DriverUI(_dte, _outputWindow, _outputPane);
            var driver = new Driver(_dte, options, backgroundBuild, ui);

            _documentEvents.DocumentSaved += driver.onDocumentSaved;

            _buildEvents.OnBuildBegin += driver.onBuildBegin;
            _buildEvents.OnBuildDone  += driver.onBuildDone;

            _buildSolutionEvent.BeforeExecute += driver.onBeforeBuildSolutionCommand;
            _buildSolutionEvent.AfterExecute  += driver.onAfterBuildSolutionCommand;

            _driver_ = driver;

            Log.D("driver connected");
        }
コード例 #5
0
ファイル: BuildOnSave.cs プロジェクト: pragmatrix/BuildOnSave
        void connectDriver(BuildType buildType)
        {
            if (_driver_ != null)
                return;

            var backgroundBuild = new BackgroundBuild2(_dte, _outputPane);
            var ui = new DriverUI(_dte, _outputWindow, _outputPane);
            var driver = new Driver(_dte, buildType, backgroundBuild, ui);

            _documentEvents.DocumentSaved += driver.onDocumentSaved;

            _buildEvents.OnBuildBegin += driver.onBuildBegin;
            _buildEvents.OnBuildDone += driver.onBuildDone;

            _buildSolutionEvent.BeforeExecute += driver.onBeforeBuildSolutionCommand;
            _buildSolutionEvent.AfterExecute += driver.onAfterBuildSolutionCommand;

            _driver_ = driver;

            Log.D("driver connected");
        }