Are the any online resource that are up to date ?

I'm just starting to write my first plugin. But I have troubles finding some useful (and up to date) code examples. For example how to jump to another file, display something  like the "Navigate to Class" dialog but with my own content.

Regards
  Roger

5 comments

The best code examples are available in Community Edition source-code, also there's a huge number of open source 3rd party plugins.

General starting points:
http://confluence.jetbrains.com/display/IDEADEV/PluginDevelopment
http://confluence.jetbrains.com/display/IntelliJIDEA/Plugin+Development

What exactly do you mean with "jump to another file", could you name existing functionality/plugin which does what you have in mind?

"Navigate To Class" can be extended via com.intellij.navigation.GotoClassContributor, related classes are located in com.intellij.ide.util.gotoByName package.

0

>>What exactly do you mean with "jump to another file", could you name existing functionality/plugin which does what you have in mind?<<
----------
Something like navigate-file but without the UI.  The use case I have right now is: If the current selected file is myPage.xhtml I want to show the file myPageController.java.

Regards
  Roger

0

Or contribute targets to default "Go To Related File" action via com.intellij.navigation.GotoRelatedProvider


0

Thanks,

that was very helpful.

Regards
  Roger

0

Please sign in to leave a comment.