Packages in custom module
Hi folks!
I have implemented the custom module feature using ModuleType and ModuleBuilder, and now I wish to allow the creation of packages (as Java) inside these modules.
Could you say me the way to implement these ? Is there any example about it?
Thanks!!
Please sign in to leave a comment.
Hello,
you can create your own action for that (see http://confluence.jetbrains.com/display/IDEADEV/IntelliJIDEAAction+System) using
CreateDirectoryOrPackageAction
(https://github.com/JetBrains/intellij-community/blob/HEAD/platform/lang-impl/src/com/intellij/ide/actions/CreateDirectoryOrPackageAction.java) as an
example.
--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"
I did it as in the python plugin
https://github.com/JetBrains/intellij-community/blob/55378a0db4bf335c30ee170b47347658a9fe267a/python/src/com/jetbrains/python/actions/CreatePackageAction.java
but now I wish, in the project view, see the package with its package icon.
I put in the plugin.xml the tag icon="com.intellij.icons.AllIcons.Nodes.Package" but it doesn't appear.
Any idea?
Thanks!