Plugin upon creation of a new project
Answered
Need to clarify that i am completely new to plugin development. i need to do certain action upon a creation of a new project. Should i use a listener for that? if so which one is the best, cuz ProjectManagerListener and PostStartupActivity dont suit.
P.S it is for Goland if it matters
Please sign in to leave a comment.
Hi,
I'm not sure if you already set up your project for GoLand. If not, see: https://plugins.jetbrains.com/docs/intellij/goland.html#goland-plugin-setup
Regarding listening to the project creation, see
com.goide.project.GoProjectLifecycleListener
.About registering listeners: https://plugins.jetbrains.com/docs/intellij/messaging-infrastructure.html#messaging-api-usage
Hello,
To perform actions upon project creation in GoLand, use
ProjectManagerListener
, which monitors project lifecycle events. Implement theprojectOpened
method for actions post-initialization and register it in yourplugin.xml
. AvoidPostStartupActivity
as it's not specific to project creation.