Community
    • Login

    Lifecycle of a plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    4 Posts 2 Posters 937 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Chris De BoeckC Offline
      Chris De Boeck
      last edited by

      Hi,

      Can someone tell me where to find some info on the lifecycle of a plugin?
      Like f.e. the following methods are provided by default:

      • pluginInit
      • pluginCleanUp
      • commandMenuInit
      • commandMenuCleanUp

      But when are these called? During startup of notepad++ or every time the plugin is used?

      Sorry if I missed this info somewhere.

      Thank you

      EkopalypseE 2 Replies Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @Chris De Boeck
        last edited by

        @Chris-De-Boeck

        All this is not needed from a plugin.
        See here for a description of what a plugin needs to export.

        1 Reply Last reply Reply Quote 0
        • EkopalypseE Offline
          Ekopalypse @Chris De Boeck
          last edited by Ekopalypse

          @Chris-De-Boeck
          I think I understand where this is coming from.
          The functions you pointed out are the ones used in the C++ demo, which are just handy functions to make it easier to create a plugin.
          What needs to be exported from a plugin is defined here.
          These are the methods that are called by Npp when a plugin is loaded (once, at startup).

          Chris De BoeckC 1 Reply Last reply Reply Quote 2
          • Chris De BoeckC Offline
            Chris De Boeck @Ekopalypse
            last edited by

            @Ekopalypse said in Lifecycle of a plugin:

            @Chris-De-Boeck
            These are the methods that are called by Npp when a plugin is loaded (once, at startup).

            Thanks, that’s clear now.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better đŸ’—

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors