RCP exportWizard删除不需要的项目 [英] RCP exportWizard remove unnecesary items
问题描述
addToMenuAndRegister(menu,ActionFactory.EXPORT.create ));
并创建了一个贡献向导:
< 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个标准导出操作:导出为存档文件,文件系统和首选项。其中至少有两个(第一个是第一个)对我的项目是非常不相干的,我想摆脱它们。问题是 - 如何?
提前感谢!
看看过滤大型用户界面,特别是基于表达式的活动。这应该是诀窍,甚至可以用来删除其他类型的项目,如视图,命令和观点...
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>
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?
Thanks in advance!
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删除不需要的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!