extend python-copyright as a plugin

This commit is contained in:
Aleksey Rostovskiy
2018-10-16 13:55:03 +03:00
parent ee4493530e
commit f84c5b7faf
7 changed files with 31 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ intellij.markdown
intellij.platform.langInjection
intellij.platform.remoteServers.git
intellij.properties
intellij.python.copyright
intellij.python.ipnb
intellij.python.langInjection
intellij.python.reStructuredText

View File

@@ -41,6 +41,5 @@
<orderEntry type="library" name="Slf4j" level="project" />
<orderEntry type="library" name="netty-handler" level="project" />
<orderEntry type="library" name="netty-codec-http" level="project" />
<orderEntry type="module" module-name="intellij.copyright" />
</component>
</module>

View File

@@ -0,0 +1,16 @@
<?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$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="intellij.copyright" />
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
<orderEntry type="module" module-name="intellij.platform.core" />
<orderEntry type="module" module-name="intellij.python.community.impl" />
</component>
</module>

View File

@@ -0,0 +1,12 @@
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude">
<name>Python Copyright</name>
<id>org.jetbrains.plugins.python-copyright</id>
<version>VERSION</version>
<vendor>JetBrains</vendor>
<depends>com.intellij.modules.python</depends>
<depends>com.intellij.copyright</depends>
<xi:include href="/META-INF/python-terminal-plugin.xml" xpointer="xpointer(/idea-plugin/*)"/>
</idea-plugin>

View File

@@ -1,5 +1,5 @@
<idea-plugin>
<extensions defaultExtensionNs="com.intellij.copyright">
<updater filetype="Python" implementationClass="com.jetbrains.python.PyUpdateCopyrightsProvider"/>
<updater filetype="Python" implementationClass="com.jetbrains.python.copyright.PyUpdateCopyrightsProvider"/>
</extensions>
</idea-plugin>

View File

@@ -1,5 +1,5 @@
// Copyright 2000-2018 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.jetbrains.python
package com.jetbrains.python.copyright
import com.intellij.openapi.fileTypes.FileType
import com.intellij.openapi.module.Module

View File

@@ -9,8 +9,6 @@
<!-- Enable command-line language -->
<xi:include href="/META-INF/command-line.xml" xpointer="xpointer(/idea-plugin/*)"/>
<xi:include href="/META-INF/python-copyright.xml" xpointer="xpointer(/idea-plugin/*)"/>
<extensions defaultExtensionNs="com.intellij">
<applicationInitializedListener implementation="com.jetbrains.python.testing.PyTestLegacyInteropInitializer"/>
<psi.treeChangePreprocessor implementation="com.jetbrains.python.PythonPsiManager"/>