Disabling animation in gef ui palette ?? [message #768551] |
Tue, 20 December 2011 10:52 |
clive.quinn Messages: 2 Registered: May 2011 |
Junior Member |
|
|
Hi
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();
}
}
});
|
|
|
Powered by
FUDForum. Page generated in 0.02478 seconds