diff --git a/tree_structure_provider/build.gradle b/tree_structure_provider/build.gradle index 21d77c38b..f68063220 100644 --- a/tree_structure_provider/build.gradle +++ b/tree_structure_provider/build.gradle @@ -1,8 +1,8 @@ -// 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. +// 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. plugins { - id 'java' - id 'org.jetbrains.intellij' version '0.4.16' + id 'java' + id 'org.jetbrains.intellij' version '0.4.16' } group 'org.intellij.sdk' @@ -11,18 +11,19 @@ version '2.0.0' sourceCompatibility = 1.8 repositories { - mavenCentral() + mavenCentral() } dependencies { - testCompile group: 'junit', name: 'junit', version: '4.12' + testCompile group: 'junit', name: 'junit', version: '4.12' } // See https://github.com/JetBrains/gradle-intellij-plugin/ intellij { - version '2019.2.4' + version '2019.3.3' updateSinceUntilBuild = false } + patchPluginXml { version = project.version } diff --git a/tree_structure_provider/gradle/wrapper/gradle-wrapper.properties b/tree_structure_provider/gradle/wrapper/gradle-wrapper.properties index 94920145f..c5a2ec827 100644 --- a/tree_structure_provider/gradle/wrapper/gradle-wrapper.properties +++ b/tree_structure_provider/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Tue Feb 11 16:56:48 CET 2020 +distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip -zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME diff --git a/tree_structure_provider/src/main/java/org/jetbrains/tutorials/tree/structure/TextOnlyTreeStructureProvider.java b/tree_structure_provider/src/main/java/org/intellij/sdk/tree_structure_provider/TextOnlyTreeStructureProvider.java similarity index 82% rename from tree_structure_provider/src/main/java/org/jetbrains/tutorials/tree/structure/TextOnlyTreeStructureProvider.java rename to tree_structure_provider/src/main/java/org/intellij/sdk/tree_structure_provider/TextOnlyTreeStructureProvider.java index 3f4dc0b59..22635d661 100644 --- a/tree_structure_provider/src/main/java/org/jetbrains/tutorials/tree/structure/TextOnlyTreeStructureProvider.java +++ b/tree_structure_provider/src/main/java/org/intellij/sdk/tree_structure_provider/TextOnlyTreeStructureProvider.java @@ -1,4 +1,6 @@ -package org.jetbrains.tutorials.tree.structure; +// 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 org.intellij.sdk.tree_structure_provider; import com.intellij.ide.projectView.*; import com.intellij.ide.projectView.impl.nodes.PsiFileNode; @@ -9,16 +11,13 @@ import org.jetbrains.annotations.*; import java.util.*; -/** - * @author Anna Bulenkova - */ public class TextOnlyTreeStructureProvider implements TreeStructureProvider { @NotNull @Override public Collection modify(@NotNull AbstractTreeNode parent, @NotNull Collection children, ViewSettings settings) { - ArrayList nodes = new ArrayList(); + ArrayList nodes = new ArrayList<>(); for (AbstractTreeNode child : children) { if (child instanceof PsiFileNode) { VirtualFile file = ((PsiFileNode) child).getVirtualFile(); @@ -36,4 +35,4 @@ public class TextOnlyTreeStructureProvider implements TreeStructureProvider { public Object getData(@NotNull Collection selected, @NotNull String dataId) { return null; } -} \ No newline at end of file +} diff --git a/tree_structure_provider/src/main/resources/META-INF/plugin.xml b/tree_structure_provider/src/main/resources/META-INF/plugin.xml index 03f83ee19..aa3ba1c25 100644 --- a/tree_structure_provider/src/main/resources/META-INF/plugin.xml +++ b/tree_structure_provider/src/main/resources/META-INF/plugin.xml @@ -1,16 +1,43 @@ + + - org.jetbrains.plugins.sample.TreeStructure - Tree Structure Provider Demo - 1.0 - JetBrains - Tree Structure Provider Demo showing only plain text files + + org.intellij.sdk.tree_structure_provider - + + SDK: Tree Structure Provider Sample Project + + + 2.0.0 + + + + + com.intellij.modules.platform + + + See the Custom Language Tutorial for more information. + ]]> + + + +
  • 2.0.0 Convert to Gradle-based plugin.
  • +
  • 1.0.0 Release 2018.3 and earlier.
  • + + ]]> +
    + + + IntelliJ Platform SDK + - + -
    \ No newline at end of file + diff --git a/tree_structure_provider/src/main/resources/META-INF/pluginIcon.svg b/tree_structure_provider/src/main/resources/META-INF/pluginIcon.svg new file mode 100644 index 000000000..613290897 --- /dev/null +++ b/tree_structure_provider/src/main/resources/META-INF/pluginIcon.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +