1dbd8d76a91ce69847887d966eebdcd349a7a245
[idea/community.git] / plugins / ui-designer / src / META-INF / plugin.xml
1 <idea-plugin version="2">
2   <name>UI Designer</name>
3   <id>com.intellij.uiDesigner</id>
4   <vendor>JetBrains</vendor>
5   <resource-bundle>messages.UIDesignerBundle</resource-bundle>
6   <depends>com.intellij.java-i18n</depends>
7   <depends>com.intellij.properties</depends>
8
9   <extensionPoints>
10     <extensionPoint name="formInspectionTool"
11                     interface="com.intellij.uiDesigner.inspections.FormInspectionTool"/>
12
13     <extensionPoint qualifiedName="com.intellij.paletteItemProvider"
14                     area="IDEA_PROJECT"
15                     interface="com.intellij.ide.palette.PaletteItemProvider"/>
16   </extensionPoints>
17
18   <extensions defaultExtensionNs="com.intellij.uiDesigner">
19     <formInspectionTool implementation="com.intellij.uiDesigner.i18n.InvalidPropertyKeyFormInspection"/>
20     <formInspectionTool implementation="com.intellij.uiDesigner.i18n.I18nFormInspection"/>
21     <formInspectionTool implementation="com.intellij.uiDesigner.inspections.Java15FormInspection"/>
22     <formInspectionTool implementation="com.intellij.uiDesigner.inspections.DuplicateMnemonicInspection"/>
23     <formInspectionTool implementation="com.intellij.uiDesigner.inspections.MissingMnemonicInspection"/>
24     <formInspectionTool implementation="com.intellij.uiDesigner.inspections.NoLabelForInspection"/>
25     <formInspectionTool implementation="com.intellij.uiDesigner.inspections.NoButtonGroupInspection"/>
26     <formInspectionTool implementation="com.intellij.uiDesigner.inspections.NoScrollPaneInspection"/>
27     <formInspectionTool implementation="com.intellij.uiDesigner.inspections.OneButtonGroupInspection"/>
28     <formInspectionTool implementation="com.intellij.uiDesigner.inspections.FormSpellCheckingInspection"/>
29   </extensions>
30
31   <extensions defaultExtensionNs="com.intellij">
32      <errorHandler implementation="com.intellij.diagnostic.ITNReporter"/>
33
34     <fileTypeFactory implementation="com.intellij.uiDesigner.FormFileTypeFactory"/>
35
36     <invalidPropertyKeyInspectionTool implementation="com.intellij.uiDesigner.i18n.InvalidPropertyKeyFormInspection"/>
37     <i18nInspectionTool implementation="com.intellij.uiDesigner.i18n.I18nFormInspection"/>
38     <java15InspectionTool implementation="com.intellij.uiDesigner.inspections.Java15FormInspection"/>
39
40     <projectConfigurable groupId="editor" instance="com.intellij.uiDesigner.GuiDesignerConfigurable" id="project.propGUI" key="title.gui.designer"
41                          bundle="messages.UIDesignerBundle"/>
42
43     <favoriteNodeProvider implementation="com.intellij.uiDesigner.projectView.UIDesignerFavoriteNodeProvider"/>
44     <renameHandler implementation="com.intellij.uiDesigner.projectView.FormRenameHandler"/>
45     <implicitUsageProvider implementation="com.intellij.uiDesigner.binding.UIDesignerImplicitUsageProvider"/>
46     <runConfigurationExtension implementation="com.intellij.uiDesigner.snapShooter.SnapShooterConfigurationExtension"/>
47     <usageTypeProvider implementation="com.intellij.uiDesigner.binding.FormUsageTypeProvider"/>
48
49     <localInspection shortName="DuplicateMnemonic" bundle="messages.UIDesignerBundle" key="inspection.duplicate.mnemonics"
50                      groupKey="form.inspections.group" enabledByDefault="true" level="WARNING"
51                      implementationClass="com.intellij.uiDesigner.inspections.DuplicateMnemonicInspection"/>
52     <localInspection shortName="MissingMnemonic" bundle="messages.UIDesignerBundle" key="inspection.missing.mnemonics"
53                      groupKey="form.inspections.group" enabledByDefault="true" level="WARNING"
54                      implementationClass="com.intellij.uiDesigner.inspections.MissingMnemonicInspection"/>
55     <localInspection shortName="NoLabelFor" bundle="messages.UIDesignerBundle" key="inspection.no.label.for"
56                      groupKey="form.inspections.group" enabledByDefault="true" level="WARNING"
57                      implementationClass="com.intellij.uiDesigner.inspections.NoLabelForInspection"/>
58     <localInspection shortName="NoButtonGroup" bundle="messages.UIDesignerBundle" key="inspection.no.button.group"
59                      groupKey="form.inspections.group" enabledByDefault="true" level="WARNING"
60                      implementationClass="com.intellij.uiDesigner.inspections.NoButtonGroupInspection"/>
61     <localInspection shortName="OneButtonGroup" bundle="messages.UIDesignerBundle" key="inspection.one.button.group"
62                      groupKey="form.inspections.group" enabledByDefault="true" level="WARNING"
63                      implementationClass="com.intellij.uiDesigner.inspections.OneButtonGroupInspection"/>
64     <localInspection shortName="NoScrollPane" bundle="messages.UIDesignerBundle" key="inspection.no.scroll.pane"
65                      groupKey="form.inspections.group" enabledByDefault="true" level="WARNING"
66                      implementationClass="com.intellij.uiDesigner.inspections.NoScrollPaneInspection"/>
67     <localInspection shortName="BoundFieldAssignment" bundle="messages.UIDesignerBundle" key="inspection.bound.field.title"
68                      groupKey="form.inspections.group" enabledByDefault="true" level="WARNING"
69                      implementationClass="com.intellij.uiDesigner.inspections.BoundFieldAssignmentInspection"/>
70
71     <fileEditorProvider implementation="com.intellij.uiDesigner.editor.UIFormEditorProvider"/>
72
73     <applicationService serviceInterface="com.intellij.uiDesigner.Properties"
74                    serviceImplementation="com.intellij.uiDesigner.Properties"/>
75
76     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.HorzAlignProperty"
77                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.HorzAlignProperty"/>
78     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.VertAlignProperty"
79                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.VertAlignProperty"/>
80     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.VSizePolicyProperty"
81                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.VSizePolicyProperty"/>
82     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.HSizePolicyProperty"
83                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.HSizePolicyProperty"/>
84     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.MarginProperty"
85                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.MarginProperty"/>
86     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.HGapProperty"
87                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.HGapProperty"/>
88     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.VGapProperty"
89                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.VGapProperty"/>
90     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.SameSizeHorizontallyProperty"
91                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.SameSizeHorizontallyProperty"/>
92     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.SameSizeVerticallyProperty"
93                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.SameSizeVerticallyProperty"/>
94     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.IndentProperty"
95                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.IndentProperty"/>
96     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.UseParentLayoutProperty"
97                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.UseParentLayoutProperty"/>
98     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.MinimumSizeProperty"
99                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.MinimumSizeProperty"/>
100     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.PreferredSizeProperty"
101                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.PreferredSizeProperty"/>
102     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.MaximumSizeProperty"
103                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.MaximumSizeProperty"/>
104     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.CustomCreateProperty"
105                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.CustomCreateProperty"/>
106     <projectService serviceInterface="com.intellij.uiDesigner.propertyInspector.properties.ClientPropertiesProperty"
107                     serviceImplementation="com.intellij.uiDesigner.propertyInspector.properties.ClientPropertiesProperty"/>
108
109     <moduleService serviceInterface="com.intellij.uiDesigner.StringDescriptorManager"
110                    serviceImplementation="com.intellij.uiDesigner.StringDescriptorManager"/>
111
112     <projectService serviceInterface="com.intellij.uiDesigner.LoaderFactory"
113                serviceImplementation="com.intellij.uiDesigner.LoaderFactory"/>
114
115     <projectService serviceInterface="com.intellij.uiDesigner.GuiDesignerConfiguration"
116                serviceImplementation="com.intellij.uiDesigner.GuiDesignerConfiguration"/>
117     <annotator language="JAVA" implementationClass="com.intellij.uiDesigner.binding.FormClassAnnotator"/>
118
119     <cacheBuilder fileType="GUI_DESIGNER_FORM" wordsScannerClass="com.intellij.uiDesigner.binding.FormWordsScanner"/>
120
121     <referencesSearch implementation="com.intellij.uiDesigner.binding.FormReferencesSearcher"/>
122
123     <saveFileAsTemplateHandler implementation="com.intellij.uiDesigner.fileTemplate.SaveFormAsTemplateHandler"/>
124     <createFromTemplateHandler implementation="com.intellij.uiDesigner.fileTemplate.CreateFormFromTemplateHandler"/>
125
126     <automaticRenamerFactory implementation="com.intellij.uiDesigner.binding.FormsRenamerFactory"/>
127
128     <treeStructureProvider implementation="com.intellij.uiDesigner.projectView.FormMergerTreeStructureProvider"/>
129
130     <fileBasedIndex implementation="com.intellij.uiDesigner.binding.FormClassIndex"/>
131
132     <compiler implementation="com.intellij.uiDesigner.make.Form2SourceCompiler"/>
133     <compileServer.plugin classpath="jps/ui-designer-jps-plugin.jar"/>
134
135     <psi.referenceContributor language="TEXT" implementation="com.intellij.uiDesigner.binding.FormReferenceContributor"/>
136
137     <refactoring.elementListenerProvider implementation="com.intellij.uiDesigner.palette.PaletteRefactoringListenerProvider"/>
138     <refactoring.moveHandler implementation="com.intellij.uiDesigner.projectView.FormMoveProvider"/>
139     <paletteItemProvider implementation="com.intellij.uiDesigner.palette.UIDesignerPaletteProvider"/>
140
141     <lang.foldingBuilder language="JAVA" implementationClass="com.intellij.uiDesigner.binding.GeneratedCodeFoldingBuilder"/>
142     <gotoRelatedProvider implementation="com.intellij.uiDesigner.binding.FormRelatedFilesProvider"/>
143
144     <projectService serviceInterface="com.intellij.uiDesigner.palette.Palette"
145                     serviceImplementation="com.intellij.uiDesigner.palette.Palette"/>
146   </extensions>
147
148   <project-components>
149     <component>
150       <implementation-class>com.intellij.uiDesigner.propertyInspector.DesignerToolWindowManager</implementation-class>
151       <headless-implementation-class></headless-implementation-class>
152       <skipForDefaultProject/>
153     </component>
154     <component>
155       <implementation-class>com.intellij.ide.palette.impl.PaletteToolWindowManager</implementation-class>
156     </component>
157     <component>
158       <implementation-class>com.intellij.uiDesigner.clientProperties.ClientPropertiesManager</implementation-class>
159     </component>
160   </project-components>
161
162   <actions>
163     <group id="GuiDesigner.MainToolbarActions">
164       <separator/>
165       <action id="GuiDesigner.PreviewForm" class="com.intellij.uiDesigner.actions.PreviewFormAction"
166               icon="AllIcons.Actions.Preview"/>
167       <action id="GuiDesigner.DataBindingWizard" class="com.intellij.uiDesigner.actions.DataBindingWizardAction"
168               icon="UIDesignerIcons.DataBindingWizard"/>
169       <action id="GuiDesigner.ReloadCustomComponents" class="com.intellij.uiDesigner.actions.ReloadCustomComponentsAction"
170               icon="AllIcons.Actions.Refresh"/>
171       <action id="GuiDesigner.ChooseLocale" class="com.intellij.uiDesigner.actions.ChooseLocaleAction"/>
172       <separator/>
173
174       <add-to-group anchor="before" group-id="MainToolBar" relative-to-action="HelpTopics"/>
175     </group>
176
177     <group id="GuiDesigner.EditorPopupMenu">
178       <reference ref="GuiDesigner.PreviewForm"/>
179       <reference ref="GuiDesigner.DataBindingWizard"/>
180       <separator/>
181       <reference ref="$Cut"/>
182       <reference ref="$Copy"/>
183       <reference ref="$Paste"/>
184       <separator/>
185       <action id="GuiDesigner.Pack" class="com.intellij.uiDesigner.actions.PackAction"/>
186       <action id="GuiDesigner.ShowGrid" class="com.intellij.uiDesigner.actions.ShowGridAction"/>
187       <action id="GuiDesigner.ShowComponentTags" class="com.intellij.uiDesigner.actions.ShowComponentTagsAction"/>
188       <separator/>
189       <action id="GuiDesigner.CreateComponent" class="com.intellij.uiDesigner.actions.CreateComponentAction"
190               use-shortcut-of="Generate"/>
191       <action id="GuiDesigner.AddTab" class="com.intellij.uiDesigner.actions.AddTabAction"/>
192       <separator/>
193       <reference ref="EditSource"/>
194       <action id="GuiDesigner.ExpandSelection" class="com.intellij.uiDesigner.actions.ExpandSelectionAction" use-shortcut-of="EditorSelectWord"/>
195       <action id="GuiDesigner.ShrinkSelection" class="com.intellij.uiDesigner.actions.ShrinkSelectionAction" use-shortcut-of="EditorUnSelectWord"/>
196       <action id="GuiDesigner.IncreaseIndent" class="com.intellij.uiDesigner.actions.IncreaseIndentAction" use-shortcut-of="EditorIndentSelection"/>
197       <action id="GuiDesigner.DecreaseIndent" class="com.intellij.uiDesigner.actions.DecreaseIndentAction" use-shortcut-of="EditorUnindentSelection"/>
198       <action id="GuiDesigner.GroupButtons" class="com.intellij.uiDesigner.actions.GroupButtonsAction"/>
199       <action id="GuiDesigner.UngroupButtons" class="com.intellij.uiDesigner.actions.UngroupButtonsAction"/>
200       <action id="GuiDesigner.Duplicate" class="com.intellij.uiDesigner.actions.DuplicateComponentsAction"
201               use-shortcut-of="EditorDuplicate"/>
202       <action id="GuiDesigner.Morph" class="com.intellij.uiDesigner.actions.MorphAction"/>
203       <action id="GuiDesigner.CreateListener" class="com.intellij.uiDesigner.actions.CreateListenerAction"
204               use-shortcut-of="OverrideMethods"/>
205       <action id="GuiDesigner.GoToListener" class="com.intellij.uiDesigner.actions.NavigateToListenerAction"
206               use-shortcut-of="GotoImplementation"/>
207       <separator/>
208       <action id="GuiDesigner.SurroundPopup" class="com.intellij.uiDesigner.actions.SurroundPopupAction"
209               use-shortcut-of="SurroundWith"/>
210       <action id="GuiDesigner.Flatten" class="com.intellij.uiDesigner.actions.FlattenAction"/>
211       <separator/>
212       <action id="GuiDesigner.FormSource" class="com.intellij.uiDesigner.actions.ShowFormSourceAction"/>
213       <separator/>
214       <reference ref="VersionControlsGroup"/>
215       <separator/>
216       <reference ref="AddToFavorites"/>
217       <separator/>
218     </group>
219
220     <group id="GuiDesigner.ComponentTreePopupMenu">
221       <reference ref="EditSource"/>
222       <reference ref="GuiDesigner.ExpandSelection"/>
223       <reference ref="GuiDesigner.ShrinkSelection"/>
224       <separator/>
225       <reference ref="$Cut"/>
226       <reference ref="$Copy"/>
227       <reference ref="$Paste"/>
228       <separator/>
229       <reference ref="GuiDesigner.AddTab"/>
230       <separator/>
231       <reference ref="GuiDesigner.Morph"/>
232       <reference ref="GuiDesigner.CreateListener"/>
233       <reference ref="GuiDesigner.GoToListener"/>
234       <separator/>
235       <reference ref="GuiDesigner.SurroundPopup"/>
236       <reference ref="GuiDesigner.Flatten"/>
237     </group>
238
239     <group id="GuiDesigner.PropertyInspectorPopupMenu">
240       <action id="GuiDesigner.QuickJavadoc" class="com.intellij.uiDesigner.actions.ShowJavadocAction" use-shortcut-of="QuickJavaDoc"/>
241       <reference ref="EditSource"/>
242       <action id="GuiDesigner.ResetValue" class="com.intellij.uiDesigner.actions.ResetValueAction"/>
243     </group>
244
245     <group id="GuiDesigner.PaletteComponentPopupMenu">
246       <action id="GuiDesigner.AddComponent" class="com.intellij.uiDesigner.palette.AddComponentAction">
247         <add-to-group group-id="ProjectViewPopupMenu" anchor="after" relative-to-action="AddToFavorites"/>
248       </action>
249       <action id="GuiDesigner.EditComponent" class="com.intellij.uiDesigner.palette.EditComponentAction">
250         <keyboard-shortcut first-keystroke="F2" keymap="$default"/>
251       </action>
252       <action id="GuiDesigner.DeleteComponent" class="com.intellij.uiDesigner.palette.DeleteComponentAction"
253               use-shortcut-of="$Delete"/>
254       <action id="GuiDesigner.AddGroup" class="com.intellij.uiDesigner.palette.AddGroupAction"/>
255     </group>
256
257     <group id="GuiDesigner.PaletteGroupPopupMenu">
258       <reference ref="GuiDesigner.AddComponent"/>
259       <reference ref="GuiDesigner.AddGroup"/>
260       <action id="GuiDesigner.EditGroup" class="com.intellij.uiDesigner.palette.EditGroupAction">
261         <keyboard-shortcut first-keystroke="F2" keymap="$default"/>
262       </action>
263       <action id="GuiDesigner.DeleteGroup" class="com.intellij.uiDesigner.palette.DeleteGroupAction"
264               use-shortcut-of="$Delete"/>
265     </group>
266
267     <action id="GuiDesigner.GenerateMain" class="com.intellij.uiDesigner.actions.GenerateMainAction">
268       <add-to-group anchor="after" group-id="GenerateGroup" relative-to-action="GenerateSuperMethodCall"/>
269     </action>
270
271     <group id="GuiDesigner.NewActions">
272       <separator/>
273       <action id="NewForm" class="com.intellij.uiDesigner.actions.CreateFormAction"/>
274       <action id="NewDialog" class="com.intellij.uiDesigner.actions.CreateDialogAction"/>
275       <action id="NewFormSnapshot" class="com.intellij.uiDesigner.snapShooter.CreateSnapShotAction"/>
276
277       <add-to-group anchor="after" group-id="NewGroup" relative-to-action="NewFromTemplate"/>
278     </group>
279   </actions>
280 </idea-plugin>