예제 #1
0
        /// <summary>
        ///   The default constructor.
        /// </summary>
        public XmlEditor()
        {
            m_cdpXmlCompletionProvider = new XmlCompletionProvider(this);

            ActiveTextAreaControl.TextArea.KeyEventHandler +=
                TextArea_KeyEventHandler;
            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 +=
                m_cdpXmlCompletionProvider_GotAutoCompleteList;
        }
예제 #2
0
    /// <summary>
    ///   The default constructor.
    /// </summary>
    public XmlEditor()
    {
      m_cdpXmlCompletionProvider = new XmlCompletionProvider(this);

      ActiveTextAreaControl.TextArea.KeyEventHandler +=
        TextArea_KeyEventHandler;
      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 +=
        m_cdpXmlCompletionProvider_GotAutoCompleteList;
    }
예제 #3
0
파일: XmlEditor.cs 프로젝트: BioBrainX/fomm
        /// <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);
        }