• Login
Community
  • Login

Lifecycle of a plugin

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
4 Posts 2 Posters 461 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.
  • C
    Chris De Boeck
    last edited by Sep 28, 2022, 7:21 AM

    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

    E 2 Replies Last reply Sep 28, 2022, 9:28 AM Reply Quote 0
    • E
      Ekopalypse @Chris De Boeck
      last edited by Sep 28, 2022, 9:28 AM

      @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
      • E
        Ekopalypse @Chris De Boeck
        last edited by Ekopalypse Sep 28, 2022, 10:32 AM Sep 28, 2022, 10:30 AM

        @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).

        C 1 Reply Last reply Sep 28, 2022, 12:00 PM Reply Quote 2
        • C
          Chris De Boeck @Ekopalypse
          last edited by Sep 28, 2022, 12:00 PM

          @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
          3 out of 4
          • First post
            3/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors