From c61fe28a388fec3e84b9cd708fc0a09ed642bcf6 Mon Sep 17 00:00:00 2001 From: Anna Bulenkova Date: Tue, 30 Dec 2014 13:57:13 +0100 Subject: [PATCH] Custom tree structure provider stub --- .../sample/CustomTreeStructureProvider.java | 27 ++++++++++++++++ tree_structure_provider/META-INF/plugin.xml | 31 +++++++++++++++++++ .../tree_structure_provider.iml | 12 +++++++ 3 files changed, 70 insertions(+) create mode 100644 plugin_sample/src/org/jetbrains/plugins/sample/CustomTreeStructureProvider.java create mode 100644 tree_structure_provider/META-INF/plugin.xml create mode 100644 tree_structure_provider/tree_structure_provider.iml diff --git a/plugin_sample/src/org/jetbrains/plugins/sample/CustomTreeStructureProvider.java b/plugin_sample/src/org/jetbrains/plugins/sample/CustomTreeStructureProvider.java new file mode 100644 index 000000000..ed2d5c310 --- /dev/null +++ b/plugin_sample/src/org/jetbrains/plugins/sample/CustomTreeStructureProvider.java @@ -0,0 +1,27 @@ +package org.jetbrains.plugins.sample; + +import com.intellij.ide.projectView.TreeStructureProvider; +import com.intellij.ide.projectView.ViewSettings; +import com.intellij.ide.util.treeView.AbstractTreeNode; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.util.Collection; +import java.util.Collections; + +/** + * @author Anna Bulenkova + */ +public class CustomTreeStructureProvider implements TreeStructureProvider { + @NotNull + @Override + public Collection modify(@NotNull AbstractTreeNode abstractTreeNode, @NotNull Collection collection, ViewSettings viewSettings) { + return Collections.emptyList(); + } + + @Nullable + @Override + public Object getData(Collection collection, String s) { + return null; + } +} diff --git a/tree_structure_provider/META-INF/plugin.xml b/tree_structure_provider/META-INF/plugin.xml new file mode 100644 index 000000000..e4498d56d --- /dev/null +++ b/tree_structure_provider/META-INF/plugin.xml @@ -0,0 +1,31 @@ + + org.jetbrains.plugins.sample.TreeStructure + Tree Structure Provider Demo + 1.0 + JetBrains + + Tree Structure Provider Demo + + Initial commit + + + + com.intellij.modules.lang + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tree_structure_provider/tree_structure_provider.iml b/tree_structure_provider/tree_structure_provider.iml new file mode 100644 index 000000000..8ab62dee5 --- /dev/null +++ b/tree_structure_provider/tree_structure_provider.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file