/
plugin.xml
174 lines (141 loc) · 13.3 KB
/
plugin.xml
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!--
~ Copyright (c) 2017 Patrick Scheibe
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without restriction, including without limitation the rights
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
~ copies of the Software, and to permit persons to whom the Software is
~ furnished to do so, subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in
~ all copies or substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
~ THE SOFTWARE.
~
-->
<idea-plugin url="http://mathematicaplugin.halirutan.de">
<id>de.halirutan.mathematica</id>
<name>Mathematica Support</name>
<category>Custom Language</category>
<vendor url="http://mathematicaplugin.halirutan.de">Patrick Scheibe</vendor>
<idea-version since-build="181"/>
<depends>com.intellij.modules.lang</depends>
<extensions defaultExtensionNs="com.intellij">
<fileTypeFactory implementation="de.halirutan.mathematica.file.MathematicaFileTypeFactory"/>
<lang.ast.factory language="Mathematica" implementationClass="de.halirutan.mathematica.lang.tree.MathematicaASTFactory"/>
<lang.parserDefinition language="Mathematica" implementationClass="de.halirutan.mathematica.lang.parsing.prattparser.MathematicaParserDefinition"/>
<sdkType id="Mathematica Sdk" implementation="de.halirutan.mathematica.sdk.MathematicaSdkType"/>
<moduleType id="MATHEMATICA_MODULE" implementationClass="de.halirutan.mathematica.module.MathematicaModuleType"/>
<moduleExtension implementation="de.halirutan.mathematica.module.MathematicaLanguageLevelModuleExtensionImpl"/>
<moduleConfigurationEditorProvider implementation="de.halirutan.mathematica.module.ui.MathematicaModuleConfigurationEditor"/>
<projectTemplatesFactory implementation="de.halirutan.mathematica.module.MathematicaProjectTemplatesFactory"/>
<lang.syntaxHighlighterFactory language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.highlighting.MathematicaSyntaxHighlighterFactory"/>
<lang.psiStructureViewFactory language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.structureview.MathematicaStructureViewFactory"/>
<lang.documentationProvider language="Mathematica" implementationClass="de.halirutan.mathematica.documentation.MathematicaDocumentationProvider"/>
<psi.referenceContributor language="Mathematica" implementation="de.halirutan.mathematica.lang.resolve.MathematicaReferenceContributor"/>
<fileBasedIndex implementation="de.halirutan.mathematica.index.packageexport.MathematicaPackageExportIndex"/>
<lang.refactoringSupport language="Mathematica" implementationClass="de.halirutan.mathematica.refactoring.MathematicaRefactoringSupport"/>
<lang.namesValidator language="Mathematica" implementationClass="de.halirutan.mathematica.refactoring.MathematicaNamesValidator"/>
<gotoSymbolContributor implementation="de.halirutan.mathematica.codeinsight.navigation.GotoSymbolContributor"/>
<gotoRelatedProvider implementation="de.halirutan.mathematica.codeinsight.navigation.MathematicaGotoRelatedProvider"/>
<lang.foldingBuilder language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.folding.MathematicaExpressionFoldingBuilder"/>
<completion.contributor language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.completion.MathematicaCompletionContributor"/>
<lang.commenter language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.editoractions.MathematicaCommenter"/>
<quoteHandler fileType="Mathematica" className="de.halirutan.mathematica.codeinsight.completion.MathematicaQuoteHandler"/>
<lang.braceMatcher language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.highlighting.MathematicaBraceMatcher"/>
<lang.smartEnterProcessor language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.editoractions.smartenter.MathematicaSmartEnter"/>
<lookup.charFilter implementation="de.halirutan.mathematica.codeinsight.completion.MathematicaCharFilter"/>
<lang.surroundDescriptor language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.surround.MathematicaSurroundDescriptor"/>
<codeInsight.surroundWithRangeAdjuster implementation="de.halirutan.mathematica.codeinsight.surround.MathematicaSurroundWithRangeAdjuster"/>
<enterHandlerDelegate implementation="de.halirutan.mathematica.codeinsight.editoractions.enter.MathematicaEnterInsideFunctionHandler"/>
<enterHandlerDelegate implementation="de.halirutan.mathematica.codeinsight.editoractions.enter.MathematicaEnterAfterOperatorHandler"/>
<liveTemplateContext implementation="de.halirutan.mathematica.codeinsight.livetemplates.MathematicaTemplateContextType"/>
<defaultLiveTemplatesProvider implementation="de.halirutan.mathematica.codeinsight.livetemplates.MathematicaDefaultLiveTemplateProvider"/>
<extendWordSelectionHandler implementation="de.halirutan.mathematica.codeinsight.editoractions.wordselection.MathematicaFunctionSelectioner"/>
<extendWordSelectionHandler implementation="de.halirutan.mathematica.codeinsight.editoractions.wordselection.MathematicaListSelectioner"/>
<applicationService serviceInterface="de.halirutan.mathematica.codeinsight.folding.MathematicaCodeFoldingSettingsImpl" serviceImplementation="de.halirutan.mathematica.codeinsight.folding.MathematicaCodeFoldingSettingsImpl"/>
<codeFoldingOptionsProvider instance="de.halirutan.mathematica.codeinsight.folding.MathematicaFoldingOptionProvider"/>
<!-- Code-style and colors-->
<colorSettingsPage implementation="de.halirutan.mathematica.codeinsight.highlighting.MathematicaColorSettingsPage"/>
<codeStyleSettingsProvider implementation="de.halirutan.mathematica.codeinsight.formatter.settings.MathematicaCodeStyleSettingsProvider"/>
<langCodeStyleSettingsProvider implementation="de.halirutan.mathematica.codeinsight.formatter.settings.MathematicaLanguageCodeStyleSettingsProvider"/>
<lang.formatter language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.formatter.MathematicaFormattingModelBuilder"/>
<additionalTextAttributes scheme="Darcula" file="colors/MathematicaDarcula.xml"/>
<additionalTextAttributes scheme="Default" file="colors/MathematicaDefault.xml"/>
<lang.refactoringSupport language="Mathematica" implementationClass="de.halirutan.mathematica.refactoring.MathematicaRefactoringSupport"/>
<annotator language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.highlighting.annotators.SymbolAnnotator"/>
<annotator language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.highlighting.annotators.CommentAnnotator"/>
<annotator language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.highlighting.annotators.MessageNameAnnotator"/>
<annotator language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.highlighting.annotators.StringifiedSymbolAnnotator"/>
<annotator language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.highlighting.annotators.FunctionAnnotator"/>
<inspectionToolProvider implementation="de.halirutan.mathematica.codeinsight.inspections.MathematicaInspectionProvider"/>
<!--<renamePsiElementProcessor implementation="de.halirutan.mathematica.refactoring.MathematicaPsiRenameProcessor"/>-->
<applicationService serviceInterface="de.halirutan.mathematica.settings.MathematicaSettings" serviceImplementation="de.halirutan.mathematica.settings.MathematicaSettings"/>
<applicationConfigurable groupId="language" displayName="Mathematica" id="preferences.Mathematica" instance="de.halirutan.mathematica.settings.MathematicaSettingsConfigurable"/>
<spellchecker.support language="Mathematica" implementationClass="de.halirutan.mathematica.codeinsight.spellcheck.MathematicaSpellCheck"/>
<spellchecker.bundledDictionaryProvider implementation="de.halirutan.mathematica.codeinsight.spellcheck.MathematicaDictionaryProvider"/>
<projectService serviceInterface="de.halirutan.mathematica.lang.resolve.MathematicaGlobalResolveCache" serviceImplementation="de.halirutan.mathematica.lang.resolve.MathematicaGlobalResolveCache"/>
<intentionAction>
<className>de.halirutan.mathematica.intentions.localization.MoveVariableToLocalisation</className>
</intentionAction>
<!--<findUsagesHandlerFactory implementation="de.halirutan.mathematica.find.MathematicaFindUsageHandlerFactory"/>-->
<errorHandler implementation="de.halirutan.mathematica.errorreporting.GitHubErrorReporter"/>
<referencesSearch implementation="de.halirutan.mathematica.lang.search.MathematicaReferenceSearch"/>
<gotoDeclarationHandler implementation="de.halirutan.mathematica.codeinsight.navigation.MathematicaGotoDeclarationProvider"/>
<!-- Support for libraries -->
<library.type implementation="de.halirutan.mathematica.library.MathematicaLibraryType"/>
<orderRootType id="MATHEMATICA_LIBRARY" order="FIRST" implementation="de.halirutan.mathematica.library.MathematicaLibraryRootType"/>
<OrderRootTypeUI key="MATHEMATICA_LIBRARY" implementationClass="de.halirutan.mathematica.library.MathematicaLibraryRootTypeUIFactory"/>
<applicationService serviceInterface="de.halirutan.mathematica.information.SymbolInformation" serviceImplementation="de.halirutan.mathematica.information.impl.SymbolInformationImpl"/>
<lang.findUsagesProvider language="Mathematica" implementationClass="de.halirutan.mathematica.find.MathematicaFindUsages"/>
</extensions>
<actions>
<action id="Mathematica.NewMathematicaFile"
class="de.halirutan.mathematica.actions.CreateMathematicaFile"
text="Mathematica File"
description="Create New Mathematica File">
<add-to-group group-id="NewGroup" anchor="before" relative-to-action="NewFromTemplate"/>
</action>
<!-- Action to test the resolving of symbol definitions and their usages -->
<!--<action id="HighlightElementAndReferences" class="de.halirutan.mathematica.actions.HighlightElementAndReferences"-->
<!--text="Highlight References" description="Highlights the symbol under the cursor and its references">-->
<!--<add-to-group group-id="EditMenu" anchor="after" relative-to-action="TemplateParametersNavigation"/>-->
<!--</action>-->
<!--Action for throwing an exception just to test the reporting of errors into the YouTrack database-->
<action id="de.halirutan.mathematica.errorreporting.TriggerExceptionAction"
class="de.halirutan.mathematica.errorreporting.TriggerExceptionAction"
text="FireArtificialException">
<keyboard-shortcut keymap="$default" first-keystroke="shift ctrl alt F12"/>
</action>
<group id="MathematicaMenu" text="Mathematica" popup="true">
<action id="Mathematica.ExpandNamedCharacters"
class="de.halirutan.mathematica.actions.ExpandNamedCharactersAction"
text="Expand all \[Name] sections"
description="Expands all closed named characters into their FullForm.">
</action>
<action id="Mathematica.CollapseNamedCharacters"
class="de.halirutan.mathematica.actions.CollapseNamedCharactersAction"
text="Collapse all \[Name] sections"
description="Collapse all named characters into their utf8 counterpart.">
</action>
<!--<action id="Mathematica.RenameReferenceResolve" class="de.halirutan.mathematica.actions.RenameReferenceResolve"-->
<!--text="Rename Reference Resolve"/>-->
<!--<separator/>-->
<action id="Mathematica.ShowFormattingBlocks" class="de.halirutan.mathematica.actions.ShowFormattingBlocks"
text="Show Formatting Blocks" description="Shows the underlying formatting blocks of a file">
</action>
<add-to-group group-id="MainMenu" anchor="after" relative-to-action="ToolsMenu"/>
</group>
<action id="MathematicaFullFormViewer" class="de.halirutan.mathematica.actions.MathematicaFullFormViewer" text="View FullForm" description="Show the estimated FullForm of the selected expression">
<add-to-group group-id="MathematicaMenu" anchor="last"/>
<keyboard-shortcut keymap="$default" first-keystroke="control alt shift E"/>
</action>
</actions>
</idea-plugin>