Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Performance: calculateEnabled called twice in refresh method of some DiagramAction
Performance: calculateEnabled called twice in refresh method of some DiagramAction [message #986252] Mon, 19 November 2012 16:10 Go to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,

For example in AutoSizeAction the method refresh is like this :

public void refresh() {
super.refresh();
setEnabled(calculateEnabled());
}

and the code of the super class DiagramAction is like this :

public void refresh() {
_operationSet = null; // invalidate the cached set
updateTargetRequest();
setEnabled(calculateEnabled());
}

As result, the "setEnabled(calculateEnabled());" is called twice. I do
not think there was a valid reason. Is that correct?

Regards,

Laurent


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Performance: calculateEnabled called twice in refresh method of some DiagramAction [message #986352 is a reply to message #986252] Tue, 20 November 2012 08:25 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi Laurent,

you should open a bug on this with runtime as component. https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMP

Ralph
Re: Performance: calculateEnabled called twice in refresh method of some DiagramAction [message #986378 is a reply to message #986352] Tue, 20 November 2012 09:48 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi Ralph,

I create https://bugs.eclipse.org/bugs/show_bug.cgi?id=394627 for this
problem.

Laurent

On 20/11/2012 09:25, Ralph Gerbig wrote:
> Hi Laurent,
>
> you should open a bug on this with runtime as component.
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMP
>
> Ralph


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Change fill color on Text doesn't change it
Next Topic:how to center align the label name in gmfgraph?
Goto Forum:
  


Current Time: Wed Apr 24 22:10:49 GMT 2024

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

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

Back to the top