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