本文介绍了RCP exportWizard删除不必要的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在我的FileMenu上添加了一个Standart EXPORT操作:

I've add an Standart EXPORT action on my FileMenu:

addToMenuAndRegister(menu, ActionFactory.EXPORT.create(window));

并创建了一个贡献向导:

And created a contribution wizard:

<extension
 id="exportSQL"
 point="org.eclipse.ui.exportWizards"
 name="SQL скрипты создания документа СУФД">
      <wizard
            category="ru.otr.cactuss.model.editor.wizard2"
            icon="icons/database.png"
            class="ru.otr.cactuss.wizard.sqlexport.SQLExportWizard"
            id="ru.otr.cactuss.wizard.sqlexport.SQLExportWizard"
            name="SQL скрипты создания документа СУФД">
      </wizard>
</extension>

一切正常,但是常规文件夹中有3个标准输出操作:导出为存档文件,文件系统和首选项。至少有两个(第2个)与我的项目无关,我想摆脱它们。问题是-怎么做?

And it's all works fine, but there is 3 standart export actions in general folder: export as Archive File, File System and Preferences. At least two of them (2 first) are highly irrelevent to my project and I want to get rid of them. The question is - how?

推荐答案

看看,尤其是。那应该可以解决问题,甚至可以用来删除其他种类的项目,例如视图,命令和透视图...

Have a look at Filtering large user interfaces, especially the part of expression-based activities. That should do the trick and can even be used to remove other sorts of items such as views, commands and perspectives...

这篇关于RCP exportWizard删除不必要的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 22:43