mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jsonpath] IDEA-321687 Extract JsonPath plugin
GitOrigin-RevId: 322f27fa98def5b2adb4eba0dbbc16be147ebb15
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f16513c242
commit
09003c4c66
Generated
+1
@@ -711,6 +711,7 @@
|
||||
<module fileurl="file://$PROJECT_DIR$/platform/script-debugger/protocol/schema-reader-generator/intellij.javascript.schemaReaderGenerator.iml" filepath="$PROJECT_DIR$/platform/script-debugger/protocol/schema-reader-generator/intellij.javascript.schemaReaderGenerator.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/json/intellij.json.iml" filepath="$PROJECT_DIR$/json/intellij.json.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/json/tests/intellij.json.tests.iml" filepath="$PROJECT_DIR$/json/tests/intellij.json.tests.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/jsonpath/intellij.jsonpath.iml" filepath="$PROJECT_DIR$/plugins/jsonpath/intellij.jsonpath.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/java/jsp-openapi/intellij.jsp.iml" filepath="$PROJECT_DIR$/java/jsp-openapi/intellij.jsp.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/java/jsp-base-openapi/intellij.jsp.base.iml" filepath="$PROJECT_DIR$/java/jsp-base-openapi/intellij.jsp.base.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/java/jsp-spi/intellij.jsp.spi.iml" filepath="$PROJECT_DIR$/java/jsp-spi/intellij.jsp.spi.iml" />
|
||||
|
||||
@@ -204,5 +204,6 @@
|
||||
<orderEntry type="module" module-name="intellij.html.tools.tests" scope="TEST" />
|
||||
<orderEntry type="module" module-name="intellij.lombok" scope="TEST" />
|
||||
<orderEntry type="module" module-name="intellij.xml.xmlbeans" scope="TEST" />
|
||||
<orderEntry type="module" module-name="intellij.jsonpath" scope="TEST" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -20,7 +20,6 @@
|
||||
<orderEntry type="library" name="fastutil-min" level="project" />
|
||||
<orderEntry type="module" module-name="intellij.platform.core.ui" />
|
||||
<orderEntry type="module" module-name="intellij.platform.codeStyle.impl" />
|
||||
<orderEntry type="library" name="jsonpath" level="project" />
|
||||
<orderEntry type="library" name="kotlin-stdlib" level="project" />
|
||||
<orderEntry type="module" module-name="intellij.platform.ide.util.io" />
|
||||
<orderEntry type="library" name="kotlinx-coroutines-core" level="project" />
|
||||
|
||||
@@ -7,16 +7,6 @@
|
||||
<add-to-group group-id="EditorTabPopupMenu" anchor="after" relative-to-action="CopyReference"/>
|
||||
<add-to-group group-id="EditorPopupMenu" anchor="after" relative-to-action="Copy.Paste.Special"/>
|
||||
</action>
|
||||
|
||||
<action id="JsonPathEvaluateAction" class="com.intellij.jsonpath.ui.JsonPathEvaluateAction" icon="AllIcons.FileTypes.Json">
|
||||
<add-to-group group-id="FindMenuGroup" anchor="after" relative-to-action="StructuralSearchActions" />
|
||||
<add-to-group group-id="EditorPopupMenu" anchor="last"/>
|
||||
</action>
|
||||
|
||||
<action id="JsonPathExportEvaluateResultAction" class="com.intellij.jsonpath.ui.JsonPathExportEvaluateResultAction"
|
||||
use-shortcut-of="ExportToTextFile" icon="AllIcons.Actions.MenuSaveall">
|
||||
<add-to-group group-id="EditorContextBarMenu"/>
|
||||
</action>
|
||||
</actions>
|
||||
|
||||
<actions resource-bundle="messages.JsonBundle">
|
||||
@@ -155,39 +145,6 @@
|
||||
|
||||
<psi.referenceContributor language="JSON" implementation="com.intellij.json.JsonWebReferenceContributor"/>
|
||||
|
||||
<lang.parserDefinition language="JSONPath" implementationClass="com.intellij.jsonpath.psi.JsonPathParserDefinition"/>
|
||||
<lang.braceMatcher language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathPairedBraceMatcher"/>
|
||||
<lang.quoteHandler language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathQuoteHandler"/>
|
||||
<lang.syntaxHighlighterFactory language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathSyntaxHighlighterFactory"/>
|
||||
<annotator language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathFunctionCallAnnotator"/>
|
||||
<colorSettingsPage implementation="com.intellij.jsonpath.JsonPathColorSettingsPage"/>
|
||||
<completion.contributor language="JSONPath" order="last" implementationClass="com.intellij.jsonpath.JsonPathCompletionContributor"/>
|
||||
<spellchecker.support language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathSpellcheckerStrategy"/>
|
||||
|
||||
<localInspection language="JSONPath" shortName="JsonPathUnknownFunction"
|
||||
implementationClass="com.intellij.jsonpath.inspections.JsonPathUnknownFunctionInspection"
|
||||
bundle="messages.JsonBundle" key="inspection.jsonpath.unknown.function"
|
||||
groupBundle="messages.JsonBundle" groupKey="json.inspection.group"
|
||||
level="WARNING" enabledByDefault="true"/>
|
||||
<localInspection language="JSONPath" shortName="JsonPathUnknownOperator"
|
||||
implementationClass="com.intellij.jsonpath.inspections.JsonPathUnknownOperatorInspection"
|
||||
bundle="messages.JsonBundle" key="inspection.jsonpath.unknown.operator"
|
||||
groupBundle="messages.JsonBundle" groupKey="json.inspection.group"
|
||||
level="WARNING" enabledByDefault="true"/>
|
||||
<localInspection language="JSONPath" shortName="JsonPathEvaluateUnknownKey"
|
||||
implementationClass="com.intellij.jsonpath.inspections.JsonPathEvaluateUnknownKeyInspection"
|
||||
bundle="messages.JsonBundle" key="inspection.jsonpath.unknown.key"
|
||||
groupBundle="messages.JsonBundle" groupKey="json.inspection.group"
|
||||
level="WARNING" enabledByDefault="true"/>
|
||||
|
||||
<toolWindowAllowlist id="JSONPathEvaluate"/>
|
||||
|
||||
<intentionAction>
|
||||
<language>JSONPath</language>
|
||||
<className>com.intellij.jsonpath.ui.JsonPathEvaluateIntentionAction</className>
|
||||
<bundleName>messages.JsonBundle</bundleName>
|
||||
<categoryKey>json.intention.category.name</categoryKey>
|
||||
</intentionAction>
|
||||
</extensions>
|
||||
|
||||
<extensions defaultExtensionNs="JavaScript">
|
||||
|
||||
@@ -31,11 +31,6 @@ inspection.duplicate.keys.msg.duplicate.keys=Object contains duplicate keys ''{0
|
||||
inspection.jsonpath.unknown.function=Unknown JSONPath function
|
||||
inspection.jsonpath.unknown.operator=Unknown JSONPath operator
|
||||
inspection.jsonpath.unknown.key=Unknown property key used for JSONPath evaluate expression
|
||||
inspection.message.jsonpath.unknown.function.name=Unknown function name ''{0}''
|
||||
inspection.message.jsonpath.unknown.operator.name=Unknown operator ''{0}''
|
||||
inspection.message.jsonpath.unknown.key=Property key ''{0}'' is not defined in the source JSON document
|
||||
inspection.message.jsonpath.unsupported.jayway.function=Function {0} is not supported in Jayway JSONPath implementation
|
||||
inspection.message.jsonpath.unsupported.jayway.operator=Operator {0} is not supported in Jayway JSONPath implementation
|
||||
|
||||
# Formatter
|
||||
formatter.align.properties.caption=Align
|
||||
@@ -80,7 +75,6 @@ json.schema.ref.no.array.element=Array doesn''t contain element with index ''{0}
|
||||
json.schema.ref.no.property=Property ''{0}'' not found
|
||||
|
||||
settings.display.name.json=JSON
|
||||
settings.display.name.jsonpath=JSONPath
|
||||
|
||||
settings.json.schema.add.mapping=Add mapping
|
||||
settings.json.schema.edit.mapping=Edit mapping
|
||||
@@ -144,46 +138,6 @@ color.page.attribute.invalid.escape.sequence=Invalid escape sequence
|
||||
color.page.attribute.valid.escape.sequence=Valid escape sequence
|
||||
color.page.attribute.parameter=Parameter
|
||||
|
||||
jsonpath.color.page.keyword=Keyword
|
||||
jsonpath.color.page.identifier=Identifier
|
||||
jsonpath.color.page.string=String
|
||||
jsonpath.color.page.number=Number
|
||||
jsonpath.color.page.boolean=Boolean
|
||||
jsonpath.color.page.function=Function call
|
||||
jsonpath.color.page.context=Context variable
|
||||
jsonpath.color.page.brackets=Braces and Operators//Brackets
|
||||
jsonpath.color.page.braces=Braces and Operators//Braces
|
||||
jsonpath.color.page.colon=Braces and Operators//Colon
|
||||
jsonpath.color.page.comma=Braces and Operators//Comma
|
||||
jsonpath.color.page.dot=Braces and Operators//Dot
|
||||
jsonpath.color.page.operation.sign=Braces and Operators//Operation sign
|
||||
jsonpath.color.page.parentheses=Braces and Operators//Parentheses
|
||||
|
||||
jsonpath.completion.key=key
|
||||
jsonpath.evaluate.no.result=Evaluate expression to see result
|
||||
jsonpath.toolwindow.evaluate.stripe=Evaluate JSONPath
|
||||
jsonpath.toolwindow.evaluate.on.snippet=Snippet
|
||||
jsonpath.toolwindow.evaluate.on.snippet.n=Snippet ({0})
|
||||
jsonpath.toolwindow.evaluate.on.file=File {0}
|
||||
jsonpath.evaluate.intention=Evaluate JSONPath Expression
|
||||
jsonpath.evaluate.export.result=Export Result of JSONPath Evaluate
|
||||
jsonpath.evaluate.progress.export.result=Exporting JSONPath evaluate result
|
||||
|
||||
jsonpath.evaluate.add.tab.text=New Tab
|
||||
jsonpath.evaluate.input=JSON input:
|
||||
jsonpath.evaluate.result=Result:
|
||||
|
||||
jsonpath.evaluate.options=Options
|
||||
jsonpath.evaluate.output.option=Output:
|
||||
jsonpath.evaluate.output.values=Matching Values
|
||||
jsonpath.evaluate.output.paths=Path Expressions
|
||||
|
||||
jsonpath.evaluate.suppress.exceptions=Suppress Exceptions During Evaluate
|
||||
jsonpath.evaluate.return.list=Always Return Result List
|
||||
jsonpath.evaluate.nullize.missing.leaf=Return Null for Missing Leaf
|
||||
jsonpath.evaluate.require.all.properties=Require All Properties
|
||||
jsonpath.evaluate.file.not.found=Input file not found
|
||||
|
||||
qualified.name.qualified=qualified name
|
||||
qualified.name.pointer=JSON pointer
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ object CommunityRepositoryModules {
|
||||
plugin("intellij.vcs.svn") { spec ->
|
||||
spec.withProjectLibrary("sqlite")
|
||||
},
|
||||
plugin("intellij.jsonpath"),
|
||||
plugin("intellij.xpath") { spec ->
|
||||
spec.withModule("intellij.xpath.rt", "rt/xslt-rt.jar")
|
||||
},
|
||||
|
||||
@@ -2466,9 +2466,6 @@ action.Graph.ZoomIn.text=Zoom In
|
||||
action.JsonCopyPointer.text=Copy JSON Pointer
|
||||
action.JsonCopyPointer.description=Copy JSON Pointer
|
||||
|
||||
action.JsonPathEvaluateAction.text=Evaluate JSONPath Expression...
|
||||
action.JsonPathExportEvaluateResultAction.text=Export Result
|
||||
|
||||
action.ExternalSystem.RemoveRunConfiguration.text=Remove Run Configuration
|
||||
action.ExternalSystem.EditRunConfiguration.text=Edit Run Configuration...
|
||||
action.ExternalSystem.ShowIgnored.text=Show Ignored
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="kotlin-stdlib" level="project" />
|
||||
<orderEntry type="library" name="jsonpath" level="project" />
|
||||
<orderEntry type="module" module-name="intellij.platform.core" />
|
||||
<orderEntry type="module" module-name="intellij.platform.analysis" />
|
||||
<orderEntry type="module" module-name="intellij.json" />
|
||||
<orderEntry type="module" module-name="intellij.platform.ide" />
|
||||
<orderEntry type="module" module-name="intellij.platform.util.ui" />
|
||||
<orderEntry type="module" module-name="intellij.platform.lang.impl" />
|
||||
<orderEntry type="module" module-name="intellij.spellchecker" />
|
||||
<orderEntry type="module" module-name="intellij.platform.core.ui" />
|
||||
<orderEntry type="module" module-name="intellij.platform.structuralSearch" scope="RUNTIME" />
|
||||
<orderEntry type="library" name="fastutil-min" level="project" />
|
||||
<orderEntry type="library" name="Guava" level="project" />
|
||||
<orderEntry type="module" module-name="intellij.platform.testFramework" scope="TEST" />
|
||||
<orderEntry type="module" module-name="intellij.platform.langInjection" scope="TEST" />
|
||||
<orderEntry type="module" module-name="intellij.platform.testExtensions" scope="TEST" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,64 @@
|
||||
<idea-plugin package="com.intellij.jsonpath">
|
||||
<id>com.intellij.jsonpath</id>
|
||||
<name>JSONPath</name>
|
||||
<vendor>JetBrains</vendor>
|
||||
<category>JavaScript Frameworks and Tools</category>
|
||||
<description><![CDATA[
|
||||
<p>Provides JSONPath language for injected code fragments and dedicated Evaluate JSONPath tool window.</p>
|
||||
<p>Go to menu <b>Edit - Find - Evaluate JSONPath Expression...</b> to to evaluate expressions with a snippet or JSON file.</p>
|
||||
]]></description>
|
||||
|
||||
<dependencies>
|
||||
<plugin id="com.intellij.modules.json"/>
|
||||
</dependencies>
|
||||
|
||||
<resource-bundle>messages.JsonPathBundle</resource-bundle>
|
||||
|
||||
<extensions defaultExtensionNs="com.intellij">
|
||||
<lang.parserDefinition language="JSONPath" implementationClass="com.intellij.jsonpath.psi.JsonPathParserDefinition"/>
|
||||
<lang.braceMatcher language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathPairedBraceMatcher"/>
|
||||
<lang.quoteHandler language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathQuoteHandler"/>
|
||||
<lang.syntaxHighlighterFactory language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathSyntaxHighlighterFactory"/>
|
||||
<annotator language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathFunctionCallAnnotator"/>
|
||||
<colorSettingsPage implementation="com.intellij.jsonpath.JsonPathColorSettingsPage"/>
|
||||
<completion.contributor language="JSONPath" order="last" implementationClass="com.intellij.jsonpath.JsonPathCompletionContributor"/>
|
||||
<spellchecker.support language="JSONPath" implementationClass="com.intellij.jsonpath.JsonPathSpellcheckerStrategy"/>
|
||||
|
||||
<localInspection language="JSONPath" shortName="JsonPathUnknownFunction"
|
||||
implementationClass="com.intellij.jsonpath.inspections.JsonPathUnknownFunctionInspection"
|
||||
bundle="messages.JsonBundle" key="inspection.jsonpath.unknown.function"
|
||||
groupBundle="messages.JsonBundle" groupKey="json.inspection.group"
|
||||
level="WARNING" enabledByDefault="true"/>
|
||||
<localInspection language="JSONPath" shortName="JsonPathUnknownOperator"
|
||||
implementationClass="com.intellij.jsonpath.inspections.JsonPathUnknownOperatorInspection"
|
||||
bundle="messages.JsonBundle" key="inspection.jsonpath.unknown.operator"
|
||||
groupBundle="messages.JsonBundle" groupKey="json.inspection.group"
|
||||
level="WARNING" enabledByDefault="true"/>
|
||||
<localInspection language="JSONPath" shortName="JsonPathEvaluateUnknownKey"
|
||||
implementationClass="com.intellij.jsonpath.inspections.JsonPathEvaluateUnknownKeyInspection"
|
||||
bundle="messages.JsonBundle" key="inspection.jsonpath.unknown.key"
|
||||
groupBundle="messages.JsonBundle" groupKey="json.inspection.group"
|
||||
level="WARNING" enabledByDefault="true"/>
|
||||
|
||||
<toolWindowAllowlist id="JSONPathEvaluate"/>
|
||||
|
||||
<intentionAction>
|
||||
<language>JSONPath</language>
|
||||
<className>com.intellij.jsonpath.ui.JsonPathEvaluateIntentionAction</className>
|
||||
<bundleName>messages.JsonBundle</bundleName>
|
||||
<categoryKey>json.intention.category.name</categoryKey>
|
||||
</intentionAction>
|
||||
</extensions>
|
||||
|
||||
<actions>
|
||||
<action id="JsonPathEvaluateAction" class="com.intellij.jsonpath.ui.JsonPathEvaluateAction" icon="AllIcons.FileTypes.Json">
|
||||
<add-to-group group-id="FindMenuGroup" anchor="after" relative-to-action="StructuralSearchActions"/>
|
||||
<add-to-group group-id="EditorPopupMenu" anchor="last"/>
|
||||
</action>
|
||||
|
||||
<action id="JsonPathExportEvaluateResultAction" class="com.intellij.jsonpath.ui.JsonPathExportEvaluateResultAction"
|
||||
use-shortcut-of="ExportToTextFile" icon="AllIcons.Actions.MenuSaveall">
|
||||
<add-to-group group-id="EditorContextBarMenu"/>
|
||||
</action>
|
||||
</actions>
|
||||
</idea-plugin>
|
||||
@@ -0,0 +1,50 @@
|
||||
settings.display.name.jsonpath=JSONPath
|
||||
|
||||
jsonpath.color.page.keyword=Keyword
|
||||
jsonpath.color.page.identifier=Identifier
|
||||
jsonpath.color.page.string=String
|
||||
jsonpath.color.page.number=Number
|
||||
jsonpath.color.page.boolean=Boolean
|
||||
jsonpath.color.page.function=Function call
|
||||
jsonpath.color.page.context=Context variable
|
||||
jsonpath.color.page.brackets=Braces and Operators//Brackets
|
||||
jsonpath.color.page.braces=Braces and Operators//Braces
|
||||
jsonpath.color.page.colon=Braces and Operators//Colon
|
||||
jsonpath.color.page.comma=Braces and Operators//Comma
|
||||
jsonpath.color.page.dot=Braces and Operators//Dot
|
||||
jsonpath.color.page.operation.sign=Braces and Operators//Operation sign
|
||||
jsonpath.color.page.parentheses=Braces and Operators//Parentheses
|
||||
|
||||
jsonpath.completion.key=key
|
||||
jsonpath.evaluate.no.result=Evaluate expression to see result
|
||||
jsonpath.toolwindow.evaluate.stripe=Evaluate JSONPath
|
||||
jsonpath.toolwindow.evaluate.on.snippet=Snippet
|
||||
jsonpath.toolwindow.evaluate.on.snippet.n=Snippet ({0})
|
||||
jsonpath.toolwindow.evaluate.on.file=File {0}
|
||||
jsonpath.evaluate.intention=Evaluate JSONPath Expression
|
||||
jsonpath.evaluate.export.result=Export Result of JSONPath Evaluate
|
||||
jsonpath.evaluate.progress.export.result=Exporting JSONPath Evaluate Result
|
||||
|
||||
jsonpath.evaluate.add.tab.text=New Tab
|
||||
jsonpath.evaluate.input=JSON input:
|
||||
jsonpath.evaluate.result=Result:
|
||||
|
||||
jsonpath.evaluate.options=Options
|
||||
jsonpath.evaluate.output.option=Output:
|
||||
jsonpath.evaluate.output.values=Matching Values
|
||||
jsonpath.evaluate.output.paths=Path Expressions
|
||||
|
||||
jsonpath.evaluate.suppress.exceptions=Suppress Exceptions During Evaluate
|
||||
jsonpath.evaluate.return.list=Always Return Result List
|
||||
jsonpath.evaluate.nullize.missing.leaf=Return Null for Missing Leaf
|
||||
jsonpath.evaluate.require.all.properties=Require All Properties
|
||||
jsonpath.evaluate.file.not.found=Input file not found
|
||||
|
||||
inspection.message.jsonpath.unknown.function.name=Unknown function name ''{0}''
|
||||
inspection.message.jsonpath.unknown.operator.name=Unknown operator ''{0}''
|
||||
inspection.message.jsonpath.unknown.key=Property key ''{0}'' is not defined in the source JSON document
|
||||
inspection.message.jsonpath.unsupported.jayway.function=Function {0} is not supported in Jayway JSONPath implementation
|
||||
inspection.message.jsonpath.unsupported.jayway.operator=Operator {0} is not supported in Jayway JSONPath implementation
|
||||
|
||||
action.JsonPathEvaluateAction.text=Evaluate JSONPath Expression...
|
||||
action.JsonPathExportEvaluateResultAction.text=Export Result
|
||||
@@ -0,0 +1,26 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.jsonpath;
|
||||
|
||||
import com.intellij.DynamicBundle;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.PropertyKey;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public final class JsonPathBundle {
|
||||
public static final @NonNls String BUNDLE = "messages.JsonPathBundle";
|
||||
private static final DynamicBundle INSTANCE = new DynamicBundle(JsonPathBundle.class, BUNDLE);
|
||||
|
||||
private JsonPathBundle() {
|
||||
}
|
||||
|
||||
public static @NotNull @Nls String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
|
||||
return INSTANCE.getMessage(key, params);
|
||||
}
|
||||
|
||||
public static @NotNull Supplier<@Nls String> messagePointer(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
|
||||
return INSTANCE.getLazyMessage(key, params);
|
||||
}
|
||||
}
|
||||
+15
-16
@@ -2,7 +2,6 @@
|
||||
package com.intellij.jsonpath;
|
||||
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.json.JsonBundle;
|
||||
import com.intellij.openapi.editor.colors.TextAttributesKey;
|
||||
import com.intellij.openapi.fileTypes.SyntaxHighlighter;
|
||||
import com.intellij.openapi.options.colors.AttributesDescriptor;
|
||||
@@ -19,25 +18,25 @@ import java.util.Map;
|
||||
final class JsonPathColorSettingsPage implements ColorSettingsPage {
|
||||
|
||||
private final AttributesDescriptor[] myAttributesDescriptors = new AttributesDescriptor[]{
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.keyword"), JsonPathSyntaxHighlighter.JSONPATH_KEYWORD),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.identifier"), JsonPathSyntaxHighlighter.JSONPATH_IDENTIFIER),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.string"), JsonPathSyntaxHighlighter.JSONPATH_STRING),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.number"), JsonPathSyntaxHighlighter.JSONPATH_NUMBER),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.boolean"), JsonPathSyntaxHighlighter.JSONPATH_BOOLEAN),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.brackets"), JsonPathSyntaxHighlighter.JSONPATH_BRACKETS),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.braces"), JsonPathSyntaxHighlighter.JSONPATH_BRACES),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.colon"), JsonPathSyntaxHighlighter.JSONPATH_COLON),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.comma"), JsonPathSyntaxHighlighter.JSONPATH_COMMA),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.dot"), JsonPathSyntaxHighlighter.JSONPATH_DOT),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.operation.sign"), JsonPathSyntaxHighlighter.JSONPATH_OPERATIONS),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.parentheses"), JsonPathSyntaxHighlighter.JSONPATH_PARENTHESES),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.context"), JsonPathSyntaxHighlighter.JSONPATH_CONTEXT),
|
||||
new AttributesDescriptor(JsonBundle.message("jsonpath.color.page.function"), JsonPathSyntaxHighlighter.JSONPATH_FUNCTION_CALL)
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.keyword"), JsonPathSyntaxHighlighter.JSONPATH_KEYWORD),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.identifier"), JsonPathSyntaxHighlighter.JSONPATH_IDENTIFIER),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.string"), JsonPathSyntaxHighlighter.JSONPATH_STRING),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.number"), JsonPathSyntaxHighlighter.JSONPATH_NUMBER),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.boolean"), JsonPathSyntaxHighlighter.JSONPATH_BOOLEAN),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.brackets"), JsonPathSyntaxHighlighter.JSONPATH_BRACKETS),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.braces"), JsonPathSyntaxHighlighter.JSONPATH_BRACES),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.colon"), JsonPathSyntaxHighlighter.JSONPATH_COLON),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.comma"), JsonPathSyntaxHighlighter.JSONPATH_COMMA),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.dot"), JsonPathSyntaxHighlighter.JSONPATH_DOT),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.operation.sign"), JsonPathSyntaxHighlighter.JSONPATH_OPERATIONS),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.parentheses"), JsonPathSyntaxHighlighter.JSONPATH_PARENTHESES),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.context"), JsonPathSyntaxHighlighter.JSONPATH_CONTEXT),
|
||||
new AttributesDescriptor(JsonPathBundle.message("jsonpath.color.page.function"), JsonPathSyntaxHighlighter.JSONPATH_FUNCTION_CALL)
|
||||
};
|
||||
|
||||
@Override
|
||||
public @NotNull @NlsContexts.ConfigurableName String getDisplayName() {
|
||||
return JsonBundle.message("settings.display.name.jsonpath");
|
||||
return JsonPathBundle.message("settings.display.name.jsonpath");
|
||||
}
|
||||
|
||||
@Override
|
||||
+1
-2
@@ -4,7 +4,6 @@ package com.intellij.jsonpath;
|
||||
import com.intellij.codeInsight.completion.*;
|
||||
import com.intellij.codeInsight.lookup.LookupElementBuilder;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.json.JsonBundle;
|
||||
import com.intellij.json.psi.JsonFile;
|
||||
import com.intellij.json.psi.JsonProperty;
|
||||
import com.intellij.json.psi.impl.JsonRecursiveElementVisitor;
|
||||
@@ -161,7 +160,7 @@ public final class JsonPathCompletionContributor extends CompletionContributor {
|
||||
result.addElement(PrioritizedLookupElement.withPriority(
|
||||
LookupElementBuilder.create(propertyName)
|
||||
.withIcon(AllIcons.Nodes.Field)
|
||||
.withTypeText(JsonBundle.message("jsonpath.completion.key")),
|
||||
.withTypeText(JsonPathBundle.message("jsonpath.completion.key")),
|
||||
100));
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user