mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
Deleted shortName and provider classes.
This commit is contained in:
parent
0639ae696e
commit
bdba2be182
@ -29,7 +29,7 @@
|
|||||||
</change-notes>
|
</change-notes>
|
||||||
|
|
||||||
<!-- Text to display as company information on Preferences/Settings | Plugin page -->
|
<!-- Text to display as company information on Preferences/Settings | Plugin page -->
|
||||||
<vendor email="sdk-example@jetbrains.com" url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
<vendor email="faux-email@jetbrains.com" url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
||||||
|
|
||||||
<extensions defaultExtensionNs="com.intellij">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
|
|
||||||
@ -40,9 +40,8 @@
|
|||||||
@see intellij.platform.resources.LangExtensionPoints
|
@see intellij.platform.resources.LangExtensionPoints
|
||||||
@see com.intellij.codeInspection.InspectionProfileEntry
|
@see com.intellij.codeInspection.InspectionProfileEntry
|
||||||
Attributes:
|
Attributes:
|
||||||
language= Defines the type of file (in this case java source) for this inspection. Not localized
|
language= Language ID
|
||||||
shortName= The default name for the inspection, e.g. the default
|
shortName= Not specified, will be computed by the underlying implementation classes.
|
||||||
for name for the description file "ComparingReferences.html". Not localized.
|
|
||||||
displayName= The string to be shown in the Preferences | Editor | Inspections panel
|
displayName= The string to be shown in the Preferences | Editor | Inspections panel
|
||||||
The displayName gets registered to identify this inspection.
|
The displayName gets registered to identify this inspection.
|
||||||
Can be localized using key= and bundle= attributes instead.
|
Can be localized using key= and bundle= attributes instead.
|
||||||
@ -55,10 +54,9 @@
|
|||||||
enabledByDefault= Inspection state when Inspections panel is created.
|
enabledByDefault= Inspection state when Inspections panel is created.
|
||||||
level= The default level of error found by this inspection, e.g. INFO, ERROR, etc.
|
level= The default level of error found by this inspection, e.g. INFO, ERROR, etc.
|
||||||
@see com.intellij.codeHighlighting.HighlightDisplayLevel
|
@see com.intellij.codeHighlighting.HighlightDisplayLevel
|
||||||
inplementationClass= package.className of implementation
|
inplementationClass= FQN of inspection implementation
|
||||||
-->
|
-->
|
||||||
<localInspection language="JAVA"
|
<localInspection language="JAVA"
|
||||||
shortName="ComparingReferences"
|
|
||||||
displayName="SDK: '==' or '!=' used instead of 'equals()'"
|
displayName="SDK: '==' or '!=' used instead of 'equals()'"
|
||||||
groupPath="Java"
|
groupPath="Java"
|
||||||
groupBundle="messages.InspectionsBundle"
|
groupBundle="messages.InspectionsBundle"
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
package com.intellij.codeInspection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class provides a list of inspections (classes) for this plugin.
|
|
||||||
* Each inspection class should have a corresponding entry in plugin.xml
|
|
||||||
* @author max
|
|
||||||
*/
|
|
||||||
public class ComparingReferencesProvider implements InspectionToolProvider {
|
|
||||||
public Class[] getInspectionClasses() {
|
|
||||||
return new Class[]{ComparingReferencesInspection.class};
|
|
||||||
}
|
|
||||||
}
|
|
@ -29,7 +29,7 @@
|
|||||||
</change-notes>
|
</change-notes>
|
||||||
|
|
||||||
<!-- Text to display as company information on Preferences/Settings | Plugin page -->
|
<!-- Text to display as company information on Preferences/Settings | Plugin page -->
|
||||||
<vendor email="sdk-example@jetbrains.com" url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
<vendor email="faux-email@jetbrains.com" url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
||||||
|
|
||||||
<extensions defaultExtensionNs="com.intellij">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
<intentionAction>
|
<intentionAction>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</change-notes>
|
</change-notes>
|
||||||
|
|
||||||
<!-- Text to display as company information on Preferences/Settings | Plugin page -->
|
<!-- Text to display as company information on Preferences/Settings | Plugin page -->
|
||||||
<vendor email="sdk-example@jetbrains.com" url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
<vendor email="faux-email@jetbrains.com" url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
||||||
|
|
||||||
<extensions defaultExtensionNs="com.intellij">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
|
|
||||||
@ -40,9 +40,8 @@
|
|||||||
@see intellij.platform.resources.LangExtensionPoints
|
@see intellij.platform.resources.LangExtensionPoints
|
||||||
@see com.intellij.codeInspection.InspectionProfileEntry
|
@see com.intellij.codeInspection.InspectionProfileEntry
|
||||||
Attributes:
|
Attributes:
|
||||||
language= Defines the type of file (in this case java source) for this inspection. Not localized
|
language= Language ID
|
||||||
shortName= The default name for the inspection, e.g. the default
|
shortName= Not specified, will be computed by the underlying implementation classes.
|
||||||
for name for the description file "DemoCode.html". Not localized.
|
|
||||||
displayName= The string to be shown in the Preferences | Editor | Inspections panel
|
displayName= The string to be shown in the Preferences | Editor | Inspections panel
|
||||||
The displayName gets registered to identify this inspection.
|
The displayName gets registered to identify this inspection.
|
||||||
Can be localized using key= and bundle= attributes instead.
|
Can be localized using key= and bundle= attributes instead.
|
||||||
@ -52,10 +51,9 @@
|
|||||||
enabledByDefault= Inspection state when Inspections panel is created.
|
enabledByDefault= Inspection state when Inspections panel is created.
|
||||||
level= The default level of error found by this inspection, e.g. INFO, ERROR, etc.
|
level= The default level of error found by this inspection, e.g. INFO, ERROR, etc.
|
||||||
@see com.intellij.codeHighlighting.HighlightDisplayLevel
|
@see com.intellij.codeHighlighting.HighlightDisplayLevel
|
||||||
inplementationClass= package.className of inspection implementation
|
inplementationClass= FQN of inspection implementation
|
||||||
-->
|
-->
|
||||||
<localInspection language="JAVA"
|
<localInspection language="JAVA"
|
||||||
shortName="DemoCode"
|
|
||||||
displayName="Demo Inspection"
|
displayName="Demo Inspection"
|
||||||
groupName="Example Inspections"
|
groupName="Example Inspections"
|
||||||
groupPath="SDK"
|
groupPath="SDK"
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2000-2019 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.tutorials.inspection;
|
|
||||||
|
|
||||||
import com.intellij.codeInspection.InspectionToolProvider;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Anna Bulenkova
|
|
||||||
*/
|
|
||||||
public class DemoInspectionToolProvider implements InspectionToolProvider {
|
|
||||||
public Class[] getInspectionClasses() {
|
|
||||||
return new Class[]{DemoCodeInspection.class};
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user