83ead95b51e384ff35429e33b1ebc59968462e9f
[idea/community.git] / images / src / META-INF / ImagesPlugin.xml
1 <idea-plugin version="2">
2
3   <vendor>JetBrains</vendor>
4
5   <extensions defaultExtensionNs="com.intellij">
6     <errorHandler implementation="com.intellij.diagnostic.ITNReporter"/>
7     <search.topHitProvider implementation="org.intellij.images.options.impl.ImagesOptionsTopHitProvider"/>
8     <applicationConfigurable groupId="editor" instance="org.intellij.images.options.impl.OptionsConfigurabe" id="Images" displayName="Images"/>
9     <fileEditorProvider implementation="org.intellij.images.editor.impl.ImageFileEditorProvider"/>
10     <selectInTarget implementation="org.intellij.images.thumbnail.impl.ThumbnailSelectInTarget"/>
11
12     <applicationService serviceInterface="org.intellij.images.fileTypes.ImageFileTypeManager"
13                         serviceImplementation="org.intellij.images.fileTypes.impl.ImageFileTypeManagerImpl"/>
14     <applicationService serviceInterface="org.intellij.images.options.OptionsManager"
15                         serviceImplementation="org.intellij.images.options.impl.OptionsManagerImpl"/>
16     <projectService serviceInterface="org.intellij.images.thumbnail.ThumbnailManager"
17                     serviceImplementation="org.intellij.images.thumbnail.impl.ThumbnailManagerImpl"/>
18     <fileTypeFactory implementation="org.intellij.images.fileTypes.impl.ImageFileTypeManagerImpl" />
19     <fileBasedIndex implementation="org.intellij.images.index.ImageInfoIndex"/>
20     <fileLookupInfoProvider implementation="org.intellij.images.completion.ImageLookupInfoProvider"/>
21     <documentationProvider implementation="org.intellij.images.fileTypes.ImageDocumentationProvider"/>
22   </extensions>
23
24   <actions>
25     <action class="org.intellij.images.actions.EditExternallyAction"
26             id="Images.EditExternally"
27             icon="ImagesIcons.EditExternally"
28             text="Open Image in External Editor">
29       <keyboard-shortcut first-keystroke="control alt F4" keymap="$default"/>
30       <add-to-group anchor="after" group-id="ProjectViewPopupMenu" relative-to-action="EditSource"/>
31     </action>
32     <action class="org.intellij.images.actions.ShowThumbnailsAction"
33             id="Images.ShowThumbnails" text="Show Image Thumbnails">
34       <keyboard-shortcut first-keystroke="shift control T" keymap="$default"/>
35       <add-to-group anchor="after" group-id="ProjectViewPopupMenu" relative-to-action="AddToFavorites"/>
36       <add-to-group anchor="after" group-id="NavbarPopupMenu" relative-to-action="AddToFavorites"/>
37     </action>
38     <action class="org.intellij.images.actions.ToggleTransparencyChessboardAction"
39             id="Images.ToggleTransparencyChessboard"
40             icon="ImagesIcons.ToggleTransparencyChessboard"
41             text="Show Chessboard"
42             description="Show a chessboard on transparent image parts">
43     </action>
44     <group id="Images.EditorToolbar">
45       <reference id="Images.ToggleTransparencyChessboard"/>
46       <action class="org.intellij.images.editor.actions.ToggleGridAction"
47               id="Images.Editor.ToggleGrid"
48               icon="ImagesIcons.ToggleGrid"
49               text="Show Grid">
50         <keyboard-shortcut first-keystroke="control QUOTE" keymap="$default"/>
51       </action>
52       <separator/>
53       <action class="org.intellij.images.editor.actions.ZoomInAction"
54               id="Images.Editor.ZoomIn"
55               icon="AllIcons.Graph.ZoomIn"
56               text="Zoom In"
57               use-shortcut-of="ExpandAll" />
58       <action class="org.intellij.images.editor.actions.ZoomOutAction"
59               id="Images.Editor.ZoomOut"
60               icon="AllIcons.Graph.ZoomOut"
61               text="Zoom Out"
62               use-shortcut-of="CollapseAll"/>
63       <action class="org.intellij.images.editor.actions.ActualSizeAction"
64               id="Images.Editor.ActualSize"
65               icon="AllIcons.Graph.ActualZoom"
66               text="Zoom to Actual Size">
67         <keyboard-shortcut first-keystroke="control DIVIDE" keymap="$default"/>
68         <keyboard-shortcut first-keystroke="control SLASH" keymap="$default"/>
69       </action>
70       <reference id="ShowColorPicker" />
71     </group>
72     <group id="Images.EditorPopupMenu">
73       <reference id="CutCopyPasteGroup"/>
74       <separator/>
75       <reference id="FindUsages"/>
76       <reference id="RefactoringMenu"/>
77       <separator/>
78       <reference id="Images.EditorToolbar"/>
79       <separator/>
80       <reference id="CloseEditor"/>
81       <separator/>
82       <reference id="AddToFavorites"/>
83       <separator/>
84       <reference id="VersionControlsGroup"/>
85       <separator/>
86       <reference id="Images.EditExternally"/>
87       <reference id="ExternalToolsGroup"/>
88     </group>
89     <group id="Images.ThumbnailsToolbar">
90       <action class="org.intellij.images.thumbnail.actions.UpFolderAction"
91               id="Images.Thumbnails.UpFolder"
92               text="Parent Folder"
93               description="Show image thumbnails from the containing folder"
94               icon="AllIcons.Nodes.UpFolder">
95         <keyboard-shortcut first-keystroke="BACK_SPACE" keymap="$default"/>
96       </action>
97       <action class="org.intellij.images.thumbnail.actions.ToggleRecursiveAction"
98               id="Images.Thumbnails.ToggleRecursive"
99               text="Recursive"
100               description="Toggle whether to show the images from subfolders recursively"
101               icon="AllIcons.ObjectBrowser.FlattenPackages">
102         <keyboard-shortcut first-keystroke="alt MULTIPLY" keymap="$default"/>
103       </action>
104       <separator/>
105       <reference id="Images.ToggleTransparencyChessboard"/>
106       <separator/>
107       <action class="org.intellij.images.thumbnail.actions.HideThumbnailsAction"
108               id="Images.Thumbnails.Hide"
109               text="Hide"
110               description="Hide image thumbnails"
111               icon="AllIcons.Actions.Cancel" use-shortcut-of="CloseContent"/>
112     </group>
113     <group id="Images.ThumbnailsPopupMenu">
114       <reference id="CutCopyPasteGroup"/>
115       <reference id="EditSource"/>
116       <action class="org.intellij.images.thumbnail.actions.EnterAction"
117               id="Images.Thumbnails.EnterAction">
118         <keyboard-shortcut first-keystroke="ENTER" keymap="$default"/>
119       </action>
120       <separator/>
121       <reference id="Images.ThumbnailsToolbar"/>
122       <separator/>
123       <reference id="FindUsages"/>
124       <reference id="RefactoringMenu"/>
125       <separator/>
126       <reference id="AddToFavorites"/>
127       <separator/>
128       <reference id="$Delete"/>
129       <separator/>
130       <reference id="VersionControlsGroup"/>
131       <reference id="CompareTwoFiles"/>
132       <separator/>
133       <reference id="Images.EditExternally"/>
134       <reference id="ExternalToolsGroup"/>
135     </group>
136   </actions>
137 </idea-plugin>