Community
    • Login

    Lifecycle of a plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    4 Posts 2 Posters 439 Views
    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
      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
        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
          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
            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors