Exemplo n.º 1
0
        public FoxProContainedLanguage(IVsTextBufferCoordinator bufferCoordinator, FoxProIntellisenseProvider intellisenseProject, uint itemId)
        {
            if (null == bufferCoordinator)
            {
                throw new ArgumentNullException("bufferCoordinator");
            }
            if (null == intellisenseProject)
            {
                throw new ArgumentNullException("intellisenseProject");
            }
            this.bufferCoordinator   = bufferCoordinator;
            this.intellisenseProject = intellisenseProject;
            this.itemId = itemId;
            // Make sure that the secondary buffer uses the FoxPro language service.
            IVsTextLines buffer;

            ErrorHandler.ThrowOnFailure(bufferCoordinator.GetSecondaryBuffer(out buffer));
            Guid languageGuid;

            this.GetLanguageServiceID(out languageGuid);
            ErrorHandler.ThrowOnFailure(buffer.SetLanguageServiceID(ref languageGuid));
        }
Exemplo n.º 2
0
 internal FoxProContainedLanguageFactory(FoxProIntellisenseProvider intellisenseProject)
 {
     languages = new Dictionary <ModuleId, FoxProContainedLanguage>();
     this.intellisenseProject = intellisenseProject;
 }