예제 #1
0
 static public void Initialize()
 {
     if (VsProjectHelper.instance == null)
     {
         VsProjectHelper.instance = new VsProjectHelper();
     }
 }
예제 #2
0
        public int OnBeforeCloseProject(IVsHierarchy pHierarchy,
                                        int fRemoved)
        {
            VsProjectHelper prjHelperInstance = VsProjectHelper.GetInstance;

            EnvDTE.Project prj = prjHelperInstance.GetCurProjectFromHierarchy(pHierarchy);
            this.eventsHandler.OnVsEventBeforeCloseProject(prj, fRemoved);
            return(VSConstants.S_OK);
        }
예제 #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;
        }