Example #1
0
 public static void Dispose()
 {
     if (VsEvents.instance != null)
     {
         VsEvents.instance.Release();
         VsEvents.instance = null;
     }
 }
Example #2
0
        public static void Initialize(IVsEventsHandler eventsHandler,
                                      IVsSolution solution)
        {
            if (eventsHandler == null)
            {
                throw new ArgumentNullException("eventsHandler");
            }

            if (solution == null)
            {
                throw new ArgumentNullException("solution");
            }

            VsEvents.instance = new VsEvents(eventsHandler, solution);

            instance.addBuildListners();
        }
Example #3
0
        protected override void Initialize() //async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
        {
            base.Initialize();

            // TODO : Can remove?
            VsProjectHelper.Initialize();

            //await PrepareWindowsAsync();
            PrepareWidnows();

            VsEvents.Initialize(this as IVsEventsHandler, GetService(typeof(SVsSolution)) as IVsSolution);

            DeviceManager.Initialize(VsPackage.outputPaneTizen);

            DeviceManager.ResetDeviceMonitorRetry();
            DeviceManager.StartDeviceMonitor();

            TizenPackageTracer.Initialize();

            PrepareToolsWindows();
            StartDebuggerMonitoring();

            base.RegisterEditorFactory(new ManifestEditorFactory(this));
            APICheckerCommand.Initialize(this, VsPackage.outputPaneTizen);

            string guidVSstd97     = "{5efc7975-14bc-11cf-9b2b-00aa00573819}".ToUpper();
            int    cmdidStartupPrj = 246;
            DTE2   dte2            = GetService(typeof(SDTE)) as DTE2;

            CEvents = dte2.Events.CommandEvents[guidVSstd97, cmdidStartupPrj];
            CEvents.AfterExecute += SetStartup_AfterExecute;

            ProfilerPlugin.Initialize(this, outputPaneTizen, dialogFactory);

            instance = this;
        }