Provides the code completion selections for an XML base on a specified schema.
Inheritance: ICompletionDataProvider
        /// <summary>
        /// The default constructor.
        /// </summary>
        public XmlEditor()
        {
            m_cdpXmlCompletionProvider = new XmlCompletionProvider(this);

            SetHighlighting("XML");
            ActiveTextAreaControl.TextArea.KeyEventHandler += new ICSharpCode.TextEditor.KeyEventHandler(TextArea_KeyEventHandler);
            this.Disposed += DisposeCodeCompletionWindow;

            Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy();
            Document.FormattingStrategy             = new XmlFormattingStrategy();

            m_tmrFoldUpdater.Tick    += UpdateFolds;
            m_tmrFoldUpdater.Interval = 2000;

            m_tmrValidator.Tick    += ValidateOnTimer;
            m_tmrValidator.Interval = 2000;

            m_cdpXmlCompletionProvider.GotAutoCompleteList += new EventHandler <AutoCompleteListEventArgs>(m_cdpXmlCompletionProvider_GotAutoCompleteList);
        }
示例#2
0
		/// <summary>
		/// The default constructor.
		/// </summary>
		public XmlEditor()
		{
			m_cdpXmlCompletionProvider = new XmlCompletionProvider(this);

			SetHighlighting("XML");
			ActiveTextAreaControl.TextArea.KeyEventHandler += new ICSharpCode.TextEditor.KeyEventHandler(TextArea_KeyEventHandler);
			this.Disposed += DisposeCodeCompletionWindow;

			Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy();
			Document.FormattingStrategy = new XmlFormattingStrategy();

			m_tmrFoldUpdater.Tick += UpdateFolds;
			m_tmrFoldUpdater.Interval = 2000;

			m_tmrValidator.Tick += ValidateOnTimer;
			m_tmrValidator.Interval = 2000;

			m_cdpXmlCompletionProvider.GotAutoCompleteList += new EventHandler<AutoCompleteListEventArgs>(m_cdpXmlCompletionProvider_GotAutoCompleteList);
		}