How to remove a Category from Import wizard in Eclipse-RCP?

后端 未结 3 1078
野性不改
野性不改 2020-12-11 09:23

I need to add an import wizard into my eclipse-rcp app. For that I would like to use existing wizard with only my categories. I found couple of examples in the Internet, but

3条回答
  •  隐瞒了意图╮
    2020-12-11 09:49

    The problem with the solution you point out is that it is using the NewWizardRegistry to retrieve the categories of the wizards. Instead, if you want to remove the import wizards you should poll the Workbench for the ImportWizardRegistry:

    AbstractExtensionWizardRegistry importWizardRegistry = (AbstractExtensionWizardRegistry) PlatformUI.getWorkbench().getImportWizardRegistry();

    Everything else is OK.

提交回复
热议问题