|
|
|
|
Re: Hide actions in tab-bar [message #1791716 is a reply to message #1791692] |
Wed, 04 July 2018 12:50 |
|
Hello,
To hide the tabbar, you need to activate programmatically the following non-UI preference (let's say in the Activator of the plugin with your odesign):
DiagramUIPlugin.getPlugin().getPreferenceStore().setValue(SiriusDiagramUiPreferencesKeys.PREF_OLD_UI.name(), true);
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Re: Hide actions in tab-bar [message #1791781 is a reply to message #1791765] |
Thu, 05 July 2018 08:32 |
|
Hello,
Yes I forgot to add that you will still need to remove the action yourself. The preference only revert back to the old UI where the actions where on the top action bar. I have to admit that I never tried to removed them all. I am curious why do you want to remove them all, as well as action like the arrange all or show/hide etc?
For the implementation of your TabbarContributor, I would have return empty list in the implementation of the methods List<IContributionItem> getDiagramContributionItem(IDiagramWorkbenchPart part, ToolBarManager manager) and List<IContributionItem> getDiagramElementContributionItem(IDiagramWorkbenchPart part, ToolBarManager manager).
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
[Updated on: Thu, 05 July 2018 08:37] Report message to a moderator
|
|
|
|
Re: Hide actions in tab-bar [message #1791798 is a reply to message #1791791] |
Thu, 05 July 2018 12:38 |
|
You're welcome.
Looking back to your screenshot, the remaining tools are GEF or GMF tools. I thought that not contributing them through getDiagramContributionItem() would get rid of them (as in examples like org.eclipse.sirius.tests.swtbot.tabbar.TabbarContributorSample they are added to the list of tabbar actions). It may comes from the combinaison with the preference "old UI" that bring them back. Anyway, I think that your solution was the only way to hide them all using a TabbarContributor.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.05285 seconds