List eclipse installed plugins at runtime

后端 未结 3 1842
独厮守ぢ
独厮守ぢ 2021-02-07 09:27

Here\'s something obvious that should be easy to do...

How do I retrieve a list of installed plugins at runtime? Can\'t see an obvious way to do this a Platform.getBundl

3条回答
  •  逝去的感伤
    2021-02-07 10:17

    Use following code to get the List of plugin installed in your RCP

    BundleContext ctx = FrameworkUtil.getBundle(your/Class/Name.class).getBundleContext(); 
    Bundle[] bundles = ctx.getBundles();
    

提交回复
热议问题