コード例 #1
0
        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;
                    }
                }
            }
        }
コード例 #2
0
		public XmlEditorControl() {
				XmlFormattingStrategy strategy = new XmlFormattingStrategy();
			Document.FormattingStrategy = strategy;

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

		}
コード例 #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();
        }
コード例 #4
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();
		}
コード例 #5
0
        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();
                }
            }
        }
コード例 #6
0
        public override void OptionsChanged()
        {
            base.OptionsChanged();
            SharpDevelopTextEditorProperties sdtep = base.TextEditorProperties as SharpDevelopTextEditorProperties;

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