Example #1
0
 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;
 }
 public BooTypeAndMemberDropdownBars(BooLanguageService service, IFileNode fileNode)
     : base(service)
 {
     this.service         = service;
     isDirty              = true;
     fileNode.Recompiled += SourceRecompiled;
     barManager           = new DropdownBarsManager(fileNode);
 }
 public BooTypeAndMemberDropdownBars(BooLanguageService service, IFileNode fileNode)
     : base(service)
 {
     this.service = service;
     isDirty = true;
     fileNode.Recompiled += SourceRecompiled;
     barManager = new DropdownBarsManager(fileNode);
 }
Example #4
0
 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 }
             );
 }
Example #5
0
 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}
                                    );
 }
Example #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);
        }
Example #7
0
 static void SynchronizeDropDowns(BooLanguageService service)
 {
     service.SynchronizeDropdowns();
 }
Example #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);
        }
Example #9
0
 static void SynchronizeDropDowns(BooLanguageService service)
 {
     service.SynchronizeDropdowns();
 }