开发者

How can I distinguish a plugin from a fragment?

开发者 https://www.devze.com 2023-02-17 08:52 出处:网络
I need to find the nature of the projects in my workspace. I found the IProject.getDescription().getNatureIds() method. as I see, both a plug-in and a fragment have the same natures. So this is not th

I need to find the nature of the projects in my workspace. I found the IProject.getDescription().getNatureIds() method. as I see, both a plug-in and a fragment have the same natures. So this is not the 开发者_开发问答right way to go.

Any other ideas ? Thank you


I found the following:

IPluginModelBase[] workspaceModels = PDECore.getDefault().getModelManager().getWorkspaceModels(); and there is a isFragmentModel() method in IPluginModelBase

0

精彩评论

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

关注公众号