summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>2013-02-06 20:13:33 +0400
committerEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>2013-02-06 20:13:33 +0400
commit0c2fab7ce0f9331fade7fe217c25920828f53c5c (patch)
tree3999c2866a4cf82e6caf9132d3905fc533c80a3c
parent8fecc1e74c9e1f8248163c2ec7f7bd04d5e8520d (diff)
downloadidea-0c2fab7ce0f9331fade7fe217c25920828f53c5c.tar.gz
IDEA-100393 make dependency on intention power pack optional
-rw-r--r--android/src/META-INF/intention-power-pack.xml8
-rw-r--r--android/src/META-INF/plugin.xml7
2 files changed, 9 insertions, 6 deletions
diff --git a/android/src/META-INF/intention-power-pack.xml b/android/src/META-INF/intention-power-pack.xml
new file mode 100644
index 00000000000..4fb08361568
--- /dev/null
+++ b/android/src/META-INF/intention-power-pack.xml
@@ -0,0 +1,8 @@
+<idea-plugin url="http://www.jetbrains.com/idea">
+ <extensions defaultExtensionNs="com.intellij">
+ <localInspection language="JAVA" shortName="AndroidNonConstantResIdsInSwitch" bundle="messages.AndroidBundle"
+ key="android.inspections.non.constant.res.ids.in.switch.name" groupKey="android.inspections.group.name"
+ enabledByDefault="true" level="ERROR"
+ implementationClass="org.jetbrains.android.inspections.AndroidNonConstantResIdsInSwitchInspection"/>
+ </extensions>
+</idea-plugin> \ No newline at end of file
diff --git a/android/src/META-INF/plugin.xml b/android/src/META-INF/plugin.xml
index cf4fb948912..57e3f9ef36c 100644
--- a/android/src/META-INF/plugin.xml
+++ b/android/src/META-INF/plugin.xml
@@ -101,10 +101,10 @@
<depends>JUnit</depends>
<depends>com.intellij.properties</depends>
- <depends>IntentionPowerPack</depends>
<depends optional="true" config-file="maven-support.xml">org.jetbrains.idea.maven</depends>
<depends optional="true" config-file="test-ng.xml">TestNG-J</depends>
+ <depends optional="true" config-file="intention-power-pack.xml">IntentionPowerPack</depends>
<extensions defaultExtensionNs="com.intellij">
<errorHandler implementation="com.intellij.diagnostic.ITNReporter"/>
@@ -182,11 +182,6 @@
key="android.inspections.element.not.allowed.name" groupKey="android.inspections.group.name" enabledByDefault="true"
level="WARNING" implementationClass="org.jetbrains.android.inspections.AndroidElementNotAllowedInspection"/>
- <localInspection language="JAVA" shortName="AndroidNonConstantResIdsInSwitch" bundle="messages.AndroidBundle"
- key="android.inspections.non.constant.res.ids.in.switch.name" groupKey="android.inspections.group.name"
- enabledByDefault="true" level="ERROR"
- implementationClass="org.jetbrains.android.inspections.AndroidNonConstantResIdsInSwitchInspection"/>
-
<globalInspection hasStaticDescription="true" shortName="AndroidLintContentDescription" displayName="Missing content description" groupKey="android.lint.inspections.group.name" bundle="messages.AndroidBundle" enabledByDefault="true" level="WARNING" implementationClass="org.jetbrains.android.inspections.lint.AndroidLintInspectionToolProvider$AndroidLintContentDescriptionInspection"/>
<globalInspection hasStaticDescription="true" shortName="AndroidLintAdapterViewChildren" displayName="AdapterView element cannot have children" groupKey="android.lint.inspections.group.name" bundle="messages.AndroidBundle" enabledByDefault="true" level="WARNING" implementationClass="org.jetbrains.android.inspections.lint.AndroidLintInspectionToolProvider$AndroidLintAdapterViewChildrenInspection"/>
<globalInspection hasStaticDescription="true" shortName="AndroidLintScrollViewCount" displayName="ScrollView element can have only one child" groupKey="android.lint.inspections.group.name" bundle="messages.AndroidBundle" enabledByDefault="true" level="WARNING" implementationClass="org.jetbrains.android.inspections.lint.AndroidLintInspectionToolProvider$AndroidLintScrollViewCountInspection"/>