private void TraceTizenPackage()
        {
            TizenPackageTracer pkgTracer = TizenPackageTracer.Instance;

            if (pkgTracer.IsAppIdOnWaiting(tDebugLaunchOptions.AppId))
            {
                string msg = string.Format("'{0}' is dependent on '{1}'.", tDebugLaunchOptions.AppId, Path.GetFileName(tDebugLaunchOptions.TpkPath));
                OutputDebugLaunchMessage(msg);
            }
            else
            {
                foreach (var appId in VsProjectHelper.GetInstance.GetAppIds(tDebugLaunchOptions.TpkPath))
                {
                    pkgTracer.AddDebugeeApp(appId, tDebugLaunchOptions.TpkPath);
                }
            }
        }
        private bool InstallTizenPackage(SDBDeviceInfo device, TizenDebugLaunchOptions tDebugLaunchOptions)
        {
            SDBLauncher.Create(VsPackage.outputPaneTizen).TerminateApplication(device, tDebugLaunchOptions.AppId);

            InstallResult installResult = Launcher.Create().InstallTizenPackage(device, tDebugLaunchOptions.TpkPath,
                                                                                null, VsPackage.dialogFactory, false, out lastErrorMessage);

            bool isInstallSucceeded = (installResult == InstallResult.OK);

            if (!isInstallSucceeded)
            {
                OutputDebugLaunchMessage(lastErrorMessage);
                ShowInstallError(installResult);
                TizenPackageTracer.CleanTpiFiles();
            }

            return(isInstallSucceeded);
        }
Exemplo n.º 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;
        }