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