You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
258 lines
11 KiB
258 lines
11 KiB
<AddIn name = "Xml Editor" |
|
author = "Matt Ward" |
|
copyright = "prj:///doc/copyright.txt" |
|
description = "Xml Editor"> |
|
|
|
<Manifest> |
|
<Identity name = "ICSharpCode.XmlEditor"/> |
|
</Manifest> |
|
|
|
<Runtime> |
|
<Import assembly = "XmlEditor.dll"> |
|
<ConditionEvaluator name = "StylesheetAssigned" class = "ICSharpCode.XmlEditor.StylesheetAssignedCondition"/> |
|
</Import> |
|
<Import assembly = ":ICSharpCode.SharpDevelop"/> |
|
</Runtime> |
|
|
|
<!-- Xml Editor View --> |
|
<Path name = "/SharpDevelop/Workbench/DisplayBindings"> |
|
<DisplayBinding id = "XmlEditor" |
|
insertbefore = "Text" |
|
supportedformats = "Text Files,Source Files" |
|
class = "ICSharpCode.XmlEditor.XmlDisplayBinding"/> |
|
</Path> |
|
|
|
<!-- Xml parser used to initiate the folding update --> |
|
<Path name = "/Workspace/Parser"> |
|
<Parser id = "XmlFoldingParser" |
|
supportedextensions = ".xml;.xsl;.xslt;.xsd;.manifest;.config;.addin;.xshd;.wxs;.wxi;.wxl;.proj;.csproj;.vbproj;.ilproj;.build;.xfrm;.targets;.xaml;.xpt;.xft;.map;.wsdl;.disco" |
|
class = "ICSharpCode.XmlEditor.Parser"/> |
|
</Path> |
|
|
|
<!-- Extra project browser icons --> |
|
<Path name = "/Workspace/Icons"> |
|
<Icon id = "ExtraXmlFileIcon" |
|
extensions = ".manifest;.config;.xshd;.wxs;.wxi;.wxl;.proj;.csproj;.vbproj;.ilproj;.xfrm;.targets;.xaml;.xpt;.xft;.map;.wsdl;.disco" |
|
resource = "FileIcons.XmlIcon" /> |
|
</Path> |
|
|
|
<!-- Xml file filter --> |
|
<Path name = "/SharpDevelop/Workbench/FileFilter"> |
|
<FileFilter id = "Xml" |
|
insertbefore="AllFiles" |
|
name = "${res:SharpDevelop.FileFilter.XmlFiles}" |
|
extensions = "*.xml"/> |
|
<FileFilter id = "Xsl" |
|
insertbefore="AllFiles" |
|
name = "${res:SharpDevelop.FileFilter.XslFiles} (*.xsl;*.xslt)" |
|
extensions = "*.xsl;*.xslt"/> |
|
</Path> |
|
|
|
<!-- XML menu --> |
|
<Path name = "/SharpDevelop/Workbench/MainMenu"> |
|
<Condition name = "WindowActive" activewindow="ICSharpCode.XmlEditor.XmlView"> |
|
<MenuItem id = "Xml" insertafter="View" insertbefore="Tools" label="&XML" type = "Menu"> |
|
<MenuItem id = "CreateSchema" |
|
label = "${res:ICSharpCode.XmlEditor.CreateSchemaMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.CreateSchemaCommand" /> |
|
<MenuItem id = "ValidateXml" |
|
label = "${res:ICSharpCode.XmlEditor.ValidateXmlMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.ValidateXmlCommand" |
|
shortcut = "Control|Shift|V" /> |
|
<MenuItem id = "Separator1" type = "Separator"/> |
|
<ComplexCondition action="Disable"> |
|
<Not> |
|
<Condition name = "WindowActive" activewindow = "ICSharpCode.XmlEditor.XslOutputView"/> |
|
</Not> |
|
<MenuItem id="AssignStylesheet" |
|
label="${res:ICSharpCode.XmlEditor.AssignXSLT}" |
|
class="ICSharpCode.XmlEditor.AssignStylesheetCommand"/> |
|
<ComplexCondition action="Disable"> |
|
<!-- evaluate StylesheetAssigned only when XmlView is active - important for lazy loading! --> |
|
<And> |
|
<Condition name = "WindowActive" activewindow = "ICSharpCode.XmlEditor.XmlView"/> |
|
<Condition name = "StylesheetAssigned" action="Disable"/> |
|
</And> |
|
<MenuItem id="OpenStylesheet" |
|
label="${res:ICSharpCode.XmlEditor.OpenXSLT}" |
|
class="ICSharpCode.XmlEditor.OpenStylesheetCommand"/> |
|
</ComplexCondition> |
|
<MenuItem id="RunTransform" |
|
label="${res:ICSharpCode.XmlEditor.RunXSLT}" |
|
class="ICSharpCode.XmlEditor.RunXslTransformCommand" |
|
shortcut="Control|Shift|T"/> |
|
</ComplexCondition> |
|
<MenuItem id = "Separator2" type = "Separator"/> |
|
<MenuItem id = "Format" |
|
label = "${res:XML.MainMenu.EditMenu.FormatMenu}" |
|
class = "ICSharpCode.XmlEditor.FormatXmlCommand" /> |
|
</MenuItem> |
|
</Condition> |
|
</Path> |
|
|
|
<!-- Right click menu --> |
|
<Path name = "/SharpDevelop/ViewContent/XmlEditor/ContextMenu"> |
|
<MenuItem id = "Cut" |
|
label = "${res:XML.TextAreaContextMenu.Cut}" |
|
icon = "Icons.16x16.CutIcon" |
|
shortcut = "Control|X" |
|
class = "ICSharpCode.SharpDevelop.Commands.Cut"/> |
|
<MenuItem id = "Copy" |
|
label = "${res:XML.TextAreaContextMenu.Copy}" |
|
icon = "Icons.16x16.CopyIcon" |
|
shortcut = "Control|C" |
|
class = "ICSharpCode.SharpDevelop.Commands.Copy"/> |
|
<MenuItem id = "Paste" |
|
label = "${res:XML.TextAreaContextMenu.Paste}" |
|
icon = "Icons.16x16.PasteIcon" |
|
shortcut = "Control|V" |
|
class = "ICSharpCode.SharpDevelop.Commands.Paste"/> |
|
<MenuItem id = "Delete" |
|
label = "${res:XML.MainMenu.EditMenu.Delete}" |
|
icon = "Icons.16x16.DeleteIcon" |
|
class = "ICSharpCode.SharpDevelop.Commands.Delete"/> |
|
<MenuItem id = "Separator1" type = "Separator"/> |
|
<MenuItem id = "Save" |
|
label = "${res:XML.MainMenu.FileMenu.Save}" |
|
icon = "Icons.16x16.SaveIcon" |
|
shortcut = "Control|S" |
|
class = "ICSharpCode.SharpDevelop.Commands.SaveFile"/> |
|
<MenuItem id = "SaveAs" |
|
label = "${res:XML.MainMenu.FileMenu.SaveAs}" |
|
class = "ICSharpCode.SharpDevelop.Commands.SaveFileAs"/> |
|
<MenuItem id = "File" |
|
label = "${res:XML.MainMenu.FileMenu.Close}" |
|
class = "ICSharpCode.SharpDevelop.Commands.CloseFile"/> |
|
<MenuItem id = "Separator2" type = "Separator"/> |
|
<MenuItem id = "Indent" |
|
label = "${res:XML.TextAreaContextMenu.Indent}" |
|
shortcut = "Control|I" |
|
class = "ICSharpCode.SharpDevelop.DefaultEditor.Commands.IndentSelection" /> |
|
<MenuItem id = "HideXPathResults" |
|
label = "${res:ICSharpCode.XmlEditor.HideXPathResults}" |
|
class = "ICSharpCode.XmlEditor.RemoveXPathHighlightingCommand"/> |
|
<MenuItem id = "GoToDefinition" |
|
label = "${res:ICSharpCode.NAntAddIn.GotoDefinitionMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.GoToSchemaDefinitionCommand"/> |
|
<MenuItem id = "FileMode" label = "${res:XML.TextAreaContextMenu.FileMode}" type="Menu"> |
|
<MenuItem id = "HighlightBuilder" type="Builder" class = "ICSharpCode.SharpDevelop.DefaultEditor.Commands.HighlightingTypeBuilder" /> |
|
</MenuItem> |
|
<MenuItem id = "Separator3" type = "Separator"/> |
|
<MenuItem id = "Options" |
|
label = "${res:XML.TextAreaContextMenu.BufferOptions}" |
|
icon = "Icons.16x16.PropertiesIcon" |
|
class ="ICSharpCode.SharpDevelop.DefaultEditor.Commands.ShowBufferOptions"/> |
|
</Path> |
|
|
|
<!-- Options panel --> |
|
<Path path = "/SharpDevelop/Dialogs/OptionsDialog/TextEditorOptions"> |
|
<DialogPanel id = "XmlSchemasPanel" |
|
insertafter = "Markers" |
|
label = "${res:ICSharpCode.XmlEditor.XmlSchemasPanel.Title}" |
|
class = "ICSharpCode.XmlEditor.XmlSchemasPanel" /> |
|
<DialogPanel id = "XmlEditorOptionsPanel" |
|
insertafter = "Markers" |
|
insertbefore = "XmlSchemasPanel" |
|
label = "${res:ICSharpCode.XmlEditor.XmlEditorOptionsPanel.Title}" |
|
class = "ICSharpCode.XmlEditor.XmlEditorOptionsPanel" /> |
|
</Path> |
|
|
|
<Path path = "/AddIns/XmlEditor/EditActions"> |
|
<EditAction id = "XmlCompletionPopup" class = "ICSharpCode.XmlEditor.CodeCompletionPopupCommand" keys = "Control|Space"/> |
|
<EditAction id = "GoToDefinition" class = "ICSharpCode.XmlEditor.GoToSchemaDefinitionEditAction" keys = "Control|Enter"/> |
|
</Path> |
|
|
|
<!-- XPath Query pad --> |
|
<Path name = "/SharpDevelop/Workbench/Pads"> |
|
<Pad id = "XPathQueryPad" |
|
category = "Tools" |
|
icon = "PadIcons.XPathQuery" |
|
title = "${res:ICSharpCode.XmlEditor.XPathQueryPad.Title}" |
|
insertafter = "UnitTestingPad" |
|
class = "ICSharpCode.XmlEditor.XPathQueryPad"/> |
|
</Path> |
|
|
|
<!-- Menu options to turn off XPath Query result highlighting --> |
|
<Path name = "/SharpDevelop/Workbench/MainMenu/Edit/Format"> |
|
<Condition name = "WindowActive" activewindow="ICSharpCode.XmlEditor.XmlView"> |
|
<MenuItem id = "RemoveXPathHighlighting" |
|
insertafter = "ShowCodeCoverage" |
|
label = "${res:ICSharpCode.XmlEditor.HideXPathResults}" |
|
class = "ICSharpCode.XmlEditor.RemoveXPathHighlightingCommand"/> |
|
</Condition> |
|
</Path> |
|
|
|
<!-- XML Tree context menu options --> |
|
<Path name = "/AddIns/XmlEditor/XmlTree/AttributesGrid/ContextMenu"> |
|
<Condition name = "Ownerstate" ownerstate="ElementSelected" action="Disable"> |
|
<MenuItem id = "AddAttribute" |
|
label = "${res:ICSharpCode.XmlEditor.XmlTreeView.AddAttributeMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.AddAttributeCommand"/> |
|
</Condition> |
|
<Condition name = "Ownerstate" ownerstate="AttributeSelected" action="Disable"> |
|
<MenuItem id = "RemoveAttribute" |
|
label = "${res:ICSharpCode.XmlEditor.XmlTreeView.RemoveAttributeMenuLabel}" |
|
icon = "Icons.16x16.DeleteIcon" |
|
class = "ICSharpCode.XmlEditor.RemoveAttributeCommand"/> |
|
</Condition> |
|
</Path> |
|
|
|
<Path name = "/AddIns/XmlEditor/XmlTree/ContextMenu"> |
|
<ComplexCondition action = "Disable"> |
|
<And> |
|
<Condition name = "Ownerstate" ownerstate = "ElementSelected"/> |
|
<Not> |
|
<Condition name = "Ownerstate" ownerstate = "RootElementSelected"/> |
|
</Not> |
|
</And> |
|
<MenuItem id = "InsertElementBefore" |
|
label = "${res:ICSharpCode.XmlEditor.XmlTreeView.InsertElementBeforeMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.InsertElementBeforeCommand"/> |
|
<MenuItem id = "InsertElementAfter" |
|
label = "${res:ICSharpCode.XmlEditor.XmlTreeView.InsertElementAfterMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.InsertElementAfterCommand"/> |
|
</ComplexCondition> |
|
<Condition name = "Ownerstate" ownerstate = "ElementSelected" action = "Disable"> |
|
<MenuItem id = "AddChildElement" |
|
label = "${res:ICSharpCode.XmlEditor.XmlTreeView.AddChildElementMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.AddChildElementCommand"/> |
|
</Condition> |
|
<ComplexCondition action = "Disable"> |
|
<Or> |
|
<Condition name = "Ownerstate" ownerstate = "TextNodeSelected"/> |
|
<And> |
|
<Condition name = "Ownerstate" ownerstate = "ElementSelected"/> |
|
<Not> |
|
<Condition name = "Ownerstate" ownerstate = "RootElementSelected"/> |
|
</Not> |
|
</And> |
|
</Or> |
|
<MenuItem id = "TextNodeCommandsSeparator" type = "Separator"/> |
|
<MenuItem id = "InsertTextNodeBefore" |
|
label = "${res:ICSharpCode.XmlEditor.XmlTreeView.InsertTextNodeBeforeMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.InsertTextNodeBeforeCommand"/> |
|
<MenuItem id = "InsertTextNodeAfter" |
|
label = "${res:ICSharpCode.XmlEditor.XmlTreeView.InsertTextNodeAfterMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.InsertTextNodeAfterCommand"/> |
|
</ComplexCondition> |
|
<Condition name = "Ownerstate" ownerstate = "ElementSelected" action = "Disable"> |
|
<MenuItem id = "AddChildTextNode" |
|
label = "${res:ICSharpCode.XmlEditor.XmlTreeView.AddChildTextNodeAfterMenuLabel}" |
|
class = "ICSharpCode.XmlEditor.AddChildTextNodeCommand"/> |
|
</Condition> |
|
<Condition name = "Ownerstate" ownerstate = "TextNodeSelected" action = "Exclude"> |
|
<MenuItem id = "RemoveTextNodeSeparator" type = "Separator"/> |
|
<MenuItem id = "RemoveTextNode" |
|
label = "${res:XML.MainMenu.EditMenu.Delete}" |
|
icon = "Icons.16x16.DeleteIcon" |
|
class = "ICSharpCode.XmlEditor.RemoveTextNodeCommand"/> |
|
</Condition> |
|
<Condition name = "Ownerstate" ownerstate = "ElementSelected" action = "Exclude"> |
|
<MenuItem id = "RemoveElementSeparator" type = "Separator"/> |
|
<MenuItem id = "RemoveElement" |
|
label = "${res:XML.MainMenu.EditMenu.Delete}" |
|
icon = "Icons.16x16.DeleteIcon" |
|
class = "ICSharpCode.XmlEditor.RemoveElementCommand"/> |
|
</Condition> |
|
</Path> |
|
</AddIn>
|
|
|