mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
[code] custom tree structure provider stub
This commit is contained in:
parent
1b4767caa3
commit
fbe3abb24a
@ -13,7 +13,7 @@
|
|||||||
<depends>com.intellij.modules.lang</depends>
|
<depends>com.intellij.modules.lang</depends>
|
||||||
|
|
||||||
<extensions defaultExtensionNs="com.intellij">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
<treeStructureProvider implementation="org.jetbrains.plugins.sample.CustomTreeStructureProvider"/>
|
<treeStructureProvider implementation="org.jetbrains.plugins.sample.tree.CustomTreeStructureProvider"/>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
|
||||||
<application-components>
|
<application-components>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.jetbrains.plugins.sample;
|
package org.jetbrains.plugins.sample.tree;
|
||||||
|
|
||||||
import com.intellij.ide.projectView.TreeStructureProvider;
|
import com.intellij.ide.projectView.TreeStructureProvider;
|
||||||
import com.intellij.ide.projectView.ViewSettings;
|
import com.intellij.ide.projectView.ViewSettings;
|
||||||
@ -15,7 +15,7 @@ import java.util.Collections;
|
|||||||
public class CustomTreeStructureProvider implements TreeStructureProvider {
|
public class CustomTreeStructureProvider implements TreeStructureProvider {
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public Collection<AbstractTreeNode> modify(@NotNull AbstractTreeNode abstractTreeNode, @NotNull Collection<AbstractTreeNode> collection, ViewSettings viewSettings) {
|
public Collection<AbstractTreeNode> modify(@NotNull AbstractTreeNode parent, @NotNull Collection<AbstractTreeNode> children, ViewSettings viewSettings) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
@ -5,6 +5,7 @@
|
|||||||
<exclude-output />
|
<exclude-output />
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/scr" isTestSource="false" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="jdk" jdkName="IDEA IU-140.1021" jdkType="IDEA JDK" />
|
<orderEntry type="jdk" jdkName="IDEA IU-140.1021" jdkType="IDEA JDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user