Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [ZEST 1] Disable animation (How to turn off the animation in ZEST 1?)
[ZEST 1] Disable animation [message #1730354] Mon, 25 April 2016 09:07 Go to next message
Wladimir Schamai is currently offline Wladimir SchamaiFriend
Messages: 53
Registered: May 2010
Member
Hi,

was the old ZEST (1.x) API enhanced for turning off the animation?

I found the topic that mentions this issue and includes the reference to a bug fix in https://www.eclipse.org/forums/index.php/t/79324/.
However, the resolution refers to the new ZEST in GEF4.

Does anyone solved this issue in ZEST 1?

Thanks for your support!
Wladimir
Re: [ZEST 1] Disable animation [message #1730356 is a reply to message #1730354] Mon, 25 April 2016 09:18 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
I think the old Zest API never offered an option for animation. The bug you refer to targeted the (intermediate) Zest2 code base, which was discontinued (as GEF4 Zest was rewritten from scratch).
Re: [ZEST 1] Disable animation [message #1730358 is a reply to message #1730356] Mon, 25 April 2016 09:29 Go to previous messageGo to next message
Wladimir Schamai is currently offline Wladimir SchamaiFriend
Messages: 53
Registered: May 2010
Member
Hi Alexander,

thanks for your reply.

ZEST 1.x (the one form http://download.eclipse.org/tools/gef/updates/releases/) offers animation but no way to turn it off or reduce the animation time.
We are still using it and, and now we need to turn off animation because it unnecessarily consumes 500ms of time.

Does it mean that the ZEST 1.x is not maintained anymore?
Re: [ZEST 1] Disable animation [message #1730380 is a reply to message #1730358] Mon, 25 April 2016 11:13 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
I think you are then referring to the animation hint within GraphContainer, right?. The bug you referred to animation support within GraphViewer, which was provided only in the Zest2 code base.

The status of Zest 1.x is "pure maintenance". That is, we will fix problems as long as we can do without breaking API. We do not actively develop it further. Our focus is on its successor, GEF4 Zest.
Re: [ZEST 1] Disable animation [message #1730407 is a reply to message #1730380] Mon, 25 April 2016 14:18 Go to previous messageGo to next message
Wladimir Schamai is currently offline Wladimir SchamaiFriend
Messages: 53
Registered: May 2010
Member
ok, I see. Thank you for the answer.

Do you think it is feasible remove the final modifier from
public static final int ANIMATION_TIME = 500;
in org.eclipse.zest.core.widgets.Graph?

That would already solve our issue because then we could reduce the animation time to a minimum. This would not break the API, right?
Re: [ZEST 1] Disable animation [message #1730413 is a reply to message #1730407] Mon, 25 April 2016 14:46 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
I will take a look at it. Please open a Bugzilla.
Re: [ZEST 1] Disable animation [message #1730428 is a reply to message #1730413] Mon, 25 April 2016 18:45 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
I can disable (layout) animations like this:

		GraphViewer viewer = new GraphViewer(parent, SWT.None);
		viewer.setNodeStyle(ZestStyles.NODES_NO_LAYOUT_ANIMATION);


Or do I miss something in this conversation?
Re: [ZEST 1] Disable animation [message #1730429 is a reply to message #1730428] Mon, 25 April 2016 18:48 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
bug 273585: make it possible to disable animation during layouting
https://bugs.eclipse.org/bugs/show_bug.cgi?id=273585
Re: [ZEST 1] Disable animation [message #1730472 is a reply to message #1730429] Tue, 26 April 2016 07:08 Go to previous messageGo to next message
Wladimir Schamai is currently offline Wladimir SchamaiFriend
Messages: 53
Registered: May 2010
Member
Thanks, Erdal! That was what I was looking for.
It was no obvious to me that can be defined for viewer.

@Alexander, thanks, my issue is solved.


Re: [ZEST 1] Disable animation [message #1730478 is a reply to message #1730472] Tue, 26 April 2016 08:38 Go to previous message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
Fine.
Previous Topic:[GEF] [Zest] GraphViewer.setInput without effect?
Next Topic:Asynchronous updates of Edges
Goto Forum:
  


Current Time: Thu Apr 25 20:53:12 GMT 2024

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

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

Back to the top