Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Disabling animation in gef ui palette ??
Disabling animation in gef ui palette ?? [message #768551] Tue, 20 December 2011 10:52
clive.quinn is currently offline clive.quinnFriend
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();
}
}
});

Previous Topic:[Zest/Draw2D] Drag and drop
Next Topic:GEF Action to confirm deletion
Goto Forum:
  


Current Time: Mon Dec 22 14:26:14 GMT 2014

Powered by FUDForum. Page generated in 0.04016 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software