Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDisabling animation in gef ui palette ??
https://www.eclipse.org/forums/index.php/mv/msg/268353/768551/#msg_768551
Is there a way to disable animation in the Palette ?
Specifically i am using PaletteViewer which uses PaletteEditPartFactory for palette entries. The graphical figure used to display drawers is a draw2d figure called DrawerFigure. In here a CollapseToggle object is created and when a ChangeEvent happens animation takes place. I have setup a search facility on the palette to search the palette drawers and entries for an input string. If i have for example 25 folders then as animation delay is 150 milliseconds, this means that the animation will take about 4 seconds to show results.
I am wondering if there is a setting/preference to disable this animation or is there a straight forward way of altering this behaviour. Any help appreciated.
Thanks
Code snippet from org.eclipse.gef.internal.ui.palette.editparts.DrawerFigure
public void handleStateChanged(ChangeEvent e) {
if (e.getPropertyName().equals(ButtonModel.SELECTED_PROPERTY)) {
Animation.markBegin();
handleExpandStateChanged();
Animation.run(150);
} else if (e.getPropertyName().equals(
ButtonModel.MOUSEOVER_PROPERTY)) {
repaint();
}
}
});
]]>clive.quinn2011-12-20T10:52:02-00:00