• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Plugin lifecycle question, setup/cleanup

Engaged ,
Dec 15, 2016 Dec 15, 2016

Copy link to clipboard

Copied

Is there a good spot to put any clean-up code, where it will be run after each time my plugin is run?

Right now, I have a class set up in StartupPlugin and cleaned up in ShutdownPlugin. But that means that the setup code gets run when Illustrator starts, and doesn't get cleaned up until Illustrator quits.

What I'm looking for is the spot that will get run on each "activation" of my plugin, and then cleaned up after all notifications and messages have finished. There must be somewhere like that that I'm missing?

TOPICS
SDK

Views

312

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guide ,
Dec 16, 2016 Dec 16, 2016

Copy link to clipboard

Copied

LATEST

I could take a look, but we just prevent our plugin from being unloaded, and then do what you're doing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines