Beispiel #1
0
 public XmlEditorView(XmlEditorViewContent viewContent)
 {
     this.viewContent = viewContent;
     InitSyntaxHighlighting();
     xpathNodeTextMarker = new XPathNodeTextMarker(buffer);
     Buffer.Changed     += BufferChanged;
 }
Beispiel #2
0
		public XmlEditorView (XmlEditorViewContent viewContent)
		{
			this.viewContent = viewContent;
			InitSyntaxHighlighting();
			xpathNodeTextMarker = new XPathNodeTextMarker(buffer);
			Buffer.Changed += BufferChanged;
		}
        protected override void Run()
        {
            // Find active Xml View.
            XmlEditorViewContent view = XmlEditorService.GetActiveView();

            if (view != null)
            {
                view.XmlEditorView.RemoveXPathMarkers();
            }
        }
        protected override void Update(CommandInfo info)
        {
            XmlEditorViewContent view = XmlEditorService.GetActiveView();

            if (view != null && view.StylesheetFileName != null)
            {
                info.Enabled = true;
            }
            else
            {
                info.Enabled = false;
            }
        }
Beispiel #5
0
        protected override void Run()
        {
            XmlEditorViewContent view = XmlEditorService.GetActiveView();

            if (view != null)
            {
                if (view.StylesheetFileName != null)
                {
                    try {
                        IdeApp.Workbench.OpenDocument(view.StylesheetFileName);
                    } catch (Exception ex) {
                        MonoDevelop.Core.LoggingService.LogError("Could not open document.", ex);
                        MonoDevelop.Ide.MessageService.ShowError("Could not open document.", ex.ToString());
                    }
                }
            }
        }