开发者

Disable eclipse plugin on license expiry?

What is the best way to disable an eclipse plugin when the license for it expires?

One way ofcourse is to crash the plugin by throwing an exception from the Plugin.start() method but that is very ugly since all the views,etc of the plugin show an exception stack trace.

I obviously want to gracefully disable the plugin instead o开发者_运维知识库f crashing it.


The state of your bundle is decided by framework after it's installed.

  • Installed it has some issues to be resolved, such as dependencies problem
  • Resolved installed and no dependency problem
  • Active if it has activator, and started without exception

So you have to disable the functionalities of your plug-in in your code after the license is expire if you want to use a graceful way to disable it besides throwing exception on the start method of activator.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜