Venkata Aditya Pavan
Venkata Aditya Pavan

Reputation: 451

Adding a scrollbar to the eclipse GEF PaletteDrawer

I'm creating the GEF editor with palette. I added some palette entries to the PaletteDrawer. Now I want to show a scrollbar in the PaletteDrawer, if there are more palette entries in the PaletteDrawer. By default it is showing the small arrows below the PaletteDrawer, instead of that, I want right side scrollbar. I searched for few hours, but I didn't get any help.

Upvotes: 0

Views: 339

Answers (1)

Villager
Villager

Reputation: 604

PaletteViewer has the method enableVerticalScrollbar(). If you can contain the PaletteDrawer in a PaletteViewer and set enableVerticalScrollbar(true), it will add a vertical scrollbar on the right.

Unfortunately I can't find any good tutorials or examples (I'm looking for help with GEF myself) to link to.

Upvotes: 1

Related Questions