コード例 #1
0
ファイル: BooFileNode.cs プロジェクト: pshiryaev/Boo-Plugin
 public BooFileNode(ProjectNode root, ProjectElement e)
     : base(root, e)
 {
     results = new CompileResults(() => Url, GetCompilerInput, ()=>GlobalServices.LanguageService.GetLanguagePreferences().TabSize);
     languageService = (BooLanguageService)GetService(typeof(BooLanguageService));
     hidden = true;
 }
コード例 #2
0
 public BooTypeAndMemberDropdownBars(BooLanguageService service, IFileNode fileNode)
     : base(service)
 {
     this.service         = service;
     isDirty              = true;
     fileNode.Recompiled += SourceRecompiled;
     barManager           = new DropdownBarsManager(fileNode);
 }
コード例 #3
0
 public BooTypeAndMemberDropdownBars(BooLanguageService service, IFileNode fileNode)
     : base(service)
 {
     this.service = service;
     isDirty = true;
     fileNode.Recompiled += SourceRecompiled;
     barManager = new DropdownBarsManager(fileNode);
 }
コード例 #4
0
ファイル: BooSource.cs プロジェクト: stefandd/Boo-Plugin
 public BooSource(BooLanguageService service, string filePath, IVsTextLines buffer, Microsoft.VisualStudio.Package.Colorizer colorizer)
     : base(service, buffer, colorizer)
 {
     projectManager = GlobalServices.GetProjectManagerForFile(filePath);
     fileNode       = projectManager.GetFileNode(filePath);
     fileNode.ShowMessages();
     fileNode.Recompiled +=
         (sender, eventArgs) => service.Invoke(
             new Action <BooLanguageService>(SynchronizeDropDowns),
             new object[] { service }
             );
 }
コード例 #5
0
ファイル: BooSource.cs プロジェクト: Rfvgyhn/Boo-Plugin
 public BooSource(BooLanguageService service, string filePath, IVsTextLines buffer, Microsoft.VisualStudio.Package.Colorizer colorizer)
     : base(service, buffer, colorizer)
 {
     projectManager = GlobalServices.GetProjectManagerForFile(filePath);
     fileNode = projectManager.GetFileNode(filePath);
     fileNode.ShowMessages();
     fileNode.Recompiled +=
         (sender, eventArgs) => service.Invoke(
             new Action<BooLanguageService>(SynchronizeDropDowns),
             new object[] {service}
                                    );
 }
コード例 #6
0
        internal static void Register(IServiceContainer container)
        {
            // Proffer the service.
            var langService = new BooLanguageService();

            langService.SetSite(container);

            ((IComponentModel)langService.GetService(typeof(SComponentModel))).DefaultCompositionService.SatisfyImportsOnce(langService);

            container.AddService(typeof(BooLanguageService), langService, true);
            langService.Start();

            // as stupid as it looks this timer is necessary to keep the parsing thread alive
            // without it the parsing thread will be shut down after 10 sec of inactivity, which means that
            // the next parsing request will trigger creating of a different parsing thread which will break
            // the type resolver supplied by DynamicTypeService
            langService.keepAliveTimer = new System.Threading.Timer(langService.KeepAlive, langService, 7000, 7000);
        }
コード例 #7
0
ファイル: BooSource.cs プロジェクト: stefandd/Boo-Plugin
 static void SynchronizeDropDowns(BooLanguageService service)
 {
     service.SynchronizeDropdowns();
 }
コード例 #8
0
        internal static void Register(IServiceContainer container)
        {
            // Proffer the service.
            var langService = new BooLanguageService();
            langService.SetSite(container);

            ((IComponentModel)langService.GetService(typeof(SComponentModel))).DefaultCompositionService.SatisfyImportsOnce(langService);

            container.AddService(typeof(BooLanguageService), langService, true);
            langService.Start();

            // as stupid as it looks this timer is necessary to keep the parsing thread alive
            // without it the parsing thread will be shut down after 10 sec of inactivity, which means that
            // the next parsing request will trigger creating of a different parsing thread which will break
            // the type resolver supplied by DynamicTypeService
            langService.keepAliveTimer = new System.Threading.Timer(langService.KeepAlive, langService, 7000, 7000);
        }
コード例 #9
0
ファイル: BooSource.cs プロジェクト: Rfvgyhn/Boo-Plugin
 static void SynchronizeDropDowns(BooLanguageService service)
 {
     service.SynchronizeDropdowns();
 }