RCP exportWizard remove unnecessary items
Asked Answered
L

1

0

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?

Latex answered 11/3, 2012 at 14:15 Comment(0)
F
1

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...

Fungi answered 12/3, 2012 at 8:5 Comment(2)
hi @Tonny Madsen, Does it also work in Eclipse 4 environment. My original question is this: https://mcmap.net/q/244564/-hide-coolbar-toolbar-items-preference-pages-in-eclipse-rcp-application-eclipse-e4/948268 .Sinew
@KuldeepJain We have not yet encountered this problem in a 4.x setting, so I cannot tell you...Fungi

© 2022 - 2024 — McMap. All rights reserved.