summaryrefslogtreecommitdiff
path: root/platform/platform-resources/src/META-INF/XmlActions.xml
blob: a6f36bedcd4fa9ad261fb71b3c174a1b4cd5ad31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<component>
  <actions>

    <group id="ToolsXmlGroup" popup="true" class="com.intellij.xml.actions.XmlActionsGroup">
      <action id="ValidateXml" class="com.intellij.xml.actions.validate.ValidateXmlAction"/>
      <action id="GenerateDTD" class="com.intellij.codeInsight.actions.GenerateDTDAction"/>
      <action id="XSD2Document" class="com.intellij.xml.actions.xmlbeans.GenerateSchemaFromInstanceDocumentAction" text="Generate XSD Schema from XML File..."/>
      <action id="Document2XSD" class="com.intellij.xml.actions.xmlbeans.GenerateInstanceDocumentFromSchemaAction" text="Generate XML Document from XSD Schema..."/>
      <separator/>

      <add-to-group group-id="ToolsMenu" anchor="before" relative-to-action="ExternalToolsGroup"/>
    </group>

    <group id="XmlGenerateToolsGroup">
      <separator/>
      <reference ref="GenerateDTD" />
      <reference ref="XSD2Document" />
      <reference ref="Document2XSD" />
      <separator/>
      <add-to-group group-id="EditorPopupMenu" anchor="last"/>
      <add-to-group group-id="ProjectViewPopupMenu" anchor="last"/>
    </group>

    <reference ref="ValidateXml">
      <add-to-group group-id="EditorPopupMenu.Run" anchor="last"/>
      <add-to-group group-id="ProjectViewPopupMenuRefactoringGroup" anchor="last"/>
      <add-to-group group-id="EditorTabPopupMenuEx" anchor="last"/>
    </reference>

    <action id="DomElementsTreeView.GotoDomElementDeclarationAction"
            class="com.intellij.util.xml.tree.actions.GotoDomElementDeclarationAction"
            text="Goto Element"
            use-shortcut-of="EditSource"/>

    <action id="DomElementsTreeView.AddElement" class="com.intellij.util.xml.tree.actions.AddElementInCollectionAction"
            text="Insert element">
      <keyboard-shortcut first-keystroke="INSERT" keymap="$default"/>
    </action>
    <action id="DomElementsTreeView.DeleteElement" class="com.intellij.util.xml.tree.actions.DeleteDomElement"
            text="Delete element" use-shortcut-of="$Delete"/>

    <group id="DomElementsTreeView.AddElementGroup" class="com.intellij.util.xml.tree.actions.AddDomElementActionGroup"/>

    <group id="DomElementsTreeView.TreePopup">
      <reference ref="DomElementsTreeView.GotoDomElementDeclarationAction"/>

      <separator/>
      <reference ref="DomElementsTreeView.AddElementGroup"/>
      <reference ref="DomElementsTreeView.DeleteElement"/>
    </group>

    <group id="DomCollectionControl">
      <action id="DomCollectionControl.Add" class="com.intellij.util.xml.ui.DomCollectionControl$AddAction" text="Add">
        <keyboard-shortcut first-keystroke="INSERT" keymap="$default"/>
      </action>
      <action id="DomCollectionControl.Edit" class="com.intellij.util.xml.ui.DomCollectionControl$EditAction" text="Edit" use-shortcut-of="EditSource"/>
      <action id="DomCollectionControl.Remove" class="com.intellij.util.xml.ui.DomCollectionControl$RemoveAction" text="Remove" use-shortcut-of="$Delete"/>
    </group>

    <group id="NewXml" text="XML">
      <action id="NewHtmlFile" class="com.intellij.ide.actions.CreateHtmlFileAction"/>
      <add-to-group group-id="NewGroup" anchor="before" relative-to-action="NewFromTemplate"/>
    </group>

    <group id="NewXmlDescriptor" class="com.intellij.ide.actions.NonTrivialActionGroup" text="XML Configuration File" popup="true" icon="AllIcons.FileTypes.Xml">
      <add-to-group group-id="NewGroup" anchor="last"/>
    </group>

    <action id="GenerateXmlTag" class="com.intellij.xml.actions.GenerateXmlTagAction"
            text="XML Tag..."
            description="Generate a new XML tag according to schema information">
      <add-to-group group-id="GenerateGroup" anchor="first"/>
    </action>

    <!-- id should be "OpenInDefaultBrowser", but existing name preserved to keep compatibility - if user configured shortcut for action, it should not be lost -->
    <action id="OpenInBrowser" class="com.intellij.ide.browsers.actions.OpenFileInDefaultBrowserAction"
            text="Open in default _browser" description="Open selected file in default browser"
            icon="AllIcons.Nodes.PpWeb">
    </action>

    <group id="OpenInBrowserGroup"
           class="com.intellij.ide.browsers.actions.OpenInBrowserBaseGroupAction$OpenInBrowserGroupAction"
           text="Open in _Browser" description="Open selected file in browser" icon="AllIcons.Nodes.PpWeb">
      <add-to-group group-id="ViewMenu" anchor="after" relative-to-action="ViewSource"/>
      <add-to-group group-id="RunContextPopupGroup" anchor="last"/>
    </group>
    <group id="OpenInBrowserEditorContextBarGroupAction"
           class="com.intellij.ide.browsers.actions.OpenInBrowserBaseGroupAction$OpenInBrowserEditorContextBarGroupAction"
           description="Open In...">
      <add-to-group group-id="EditorContextBarMenu" anchor="last"/>
    </group>

    <action id="SurroundWithEmmet" class="com.intellij.codeInsight.template.emmet.SurroundWithEmmetAction" 
            text="Surround with Emmet" description="Surround selected code with Emmet abbreviation"/>
    <action id="EmmetPreview" class="com.intellij.codeInsight.template.emmet.EmmetPreviewAction" 
            text="Emmet Preview" description="Show preview for emmet abbreviation"/>
  </actions>
</component>