public override void OptionsChanged()
        {
            base.OptionsChanged();
            SharpDevelopTextEditorProperties sdtep = base.TextEditorProperties as SharpDevelopTextEditorProperties;

            if (sdtep != null)
            {
                if (!sdtep.ShowQuickClassBrowserPanel)
                {
                    RemoveQuickClassBrowserPanel();
                }
                else
                {
                    ActivateQuickClassBrowserOnDemand();
                }
                if (sdtep.UnderlineErrors)
                {
                    if (errorDrawer == null)
                    {
                        errorDrawer = new ErrorDrawer(this);
                    }
                }
                else
                {
                    if (errorDrawer != null)
                    {
                        errorDrawer.Dispose();
                        errorDrawer = null;
                    }
                }
            }
        }
		public XmlEditorControl() {
				XmlFormattingStrategy strategy = new XmlFormattingStrategy();
			Document.FormattingStrategy = strategy;

			Document.HighlightingStrategy = HighlightingManager.Manager.FindHighlighter("XML");
			Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy();
			TextEditorProperties = new SharpDevelopTextEditorProperties();

		}
Beispiel #3
0
        public SharpDevelopTextAreaControl()
        {
            errorDrawer = new ErrorDrawer(this);
            Document.FoldingManager.FoldingStrategy = new ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.ParserFoldingStrategy();
            Document.BookmarkManager.Factory        = new Bookmarks.SDBookmarkFactory(Document.BookmarkManager);
            Document.BookmarkManager.Added         += new BookmarkEventHandler(BookmarkAdded);
            Document.BookmarkManager.Removed       += new BookmarkEventHandler(BookmarkRemoved);
            GenerateEditActions();

            TextEditorProperties = new SharpDevelopTextEditorProperties();
        }
		public SharpDevelopTextAreaControl()
		{
			errorDrawer = new ErrorDrawer(this);
			Document.FoldingManager.FoldingStrategy = new ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.ParserFoldingStrategy();
			Document.BookmarkManager.Factory = new Bookmarks.SDBookmarkFactory(Document.BookmarkManager);
			Document.BookmarkManager.Added   += new BookmarkEventHandler(BookmarkAdded);
			Document.BookmarkManager.Removed += new BookmarkEventHandler(BookmarkRemoved);
			GenerateEditActions();
			
			TextEditorProperties = new SharpDevelopTextEditorProperties();
		}
        public void ActivateQuickClassBrowserOnDemand()
        {
            SharpDevelopTextEditorProperties sdtep = base.TextEditorProperties as SharpDevelopTextEditorProperties;

            if (sdtep != null && sdtep.ShowQuickClassBrowserPanel && FileName != null)
            {
                bool quickClassPanelActive = ParserService.GetParser(FileName) != null;
                if (quickClassPanelActive)
                {
                    ShowQuickClassBrowserPanel();
                }
                else
                {
                    RemoveQuickClassBrowserPanel();
                }
            }
        }
Beispiel #6
0
        public override void OptionsChanged()
        {
            base.OptionsChanged();
            SharpDevelopTextEditorProperties sdtep = base.TextEditorProperties as SharpDevelopTextEditorProperties;

            if (sdtep != null)
            {
                if (!sdtep.ShowQuickClassBrowserPanel)
                {
                    RemoveQuickClassBrowserPanel();
                }
                else
                {
                    ActivateQuickClassBrowserOnDemand();
                }
            }
        }