Rearranger usage example

Rearranger usage example

I added <lang.rearranger language="Haxe" implementationClass="com.intellij.plugins.haxe.ide.rearranger.HaxeRearrangerModel" /> to plugin descriptor

I made a class which implements com.intellij.psi.codeStyle.arrangement.Rearranger like it's described in docs.

https://github.com/JetBrains/intellij-community/blob/master/java/java-impl/src/com/intellij/psi/codeStyle/arrangement/JavaRearranger.java
This one looks complicated, maybe there are instructions somewhere?

Best regards,
Boyan

4 comments
Comment actions Permalink

Only javadoc in Rearranger interface.
Second implementation example is com.intellij.xml.arrangement.XmlRearranger.

0
Comment actions Permalink

Thanks. How to add JavaDoc for OpenAPI? It there is a Document path/URL for it?

0
Comment actions Permalink

Clone IntelliJ IDEA Community Edition repo (git clone https://github.com/JetBrains/intellij-community) anywhere on the computer (it takes some time), open Sources tab of the Plugin SDK (Project Structure dialog) and add path to the cloned repo root. After some scanning IDE will find all src folders - accept them. You'll be able to navigate to source and preview docs.

0

Please sign in to leave a comment.