Custom TreeStructureProvider for java files

Hi,

Could somebody clarify why I can not modify java files view in tree view by nesting rules or custom TreeStructureProvider?

Kind regards,
Efim

 

0
4 comments

Efim,

I'm afraid your question is not clear. 

What are you trying to do?

How are you trying to implement it?

What do you expect to get?

What do you get instead?

0

Hi Alexander,

 

> What are you trying to do?

I'll try to implement custom treeStructureProvider.

> How are you trying to implement it?

This way

http://plugins.jetbrains.com/plugin/10353-groupper

> What do you expect to get?

> What do you get instead?

IDEA:

Android studio:

You can find my sources here

https://dej.in.ua/wp-content/uploads/2018/02/plugin.zip

 

Look like IDEA and Android Studio use custom treeStructureProvider which impossible to change

 

Kind regards,

Efim Dejin

0

Thanks for the details!

I haven't read your code yet, so first I'll give you a quick answer, probably it'll be enough. 

Both IntelliJ IDEA Platform (Community Edition repository) and Android Studio are open source. I suggest that you set a breakpoint in your TreeStructreProvider and analyze which other TreeStructreProviders and in which order are executed and what they do. If needed you may control the order of the TreeStructreProviders. To do it use `order` attribute when declaring your extension in the  plugin.xml file. For example `order='first'` or `order='before someOtherProviderId'`.

0

Hi Alexander,

 

I solved bug with IDEA and now new version of plugin pending for JetBrains' review.
Anyway I'm stupid front-end developer and would be fine if you have any recommendation how can I solve problem with Android Studio.

 

Kind regards,

Efim

0

Please sign in to leave a comment.