| Performance: calculateEnabled called twice in refresh method of some DiagramAction [message #986252] |
Mon, 19 November 2012 11:10  |
Laurent Redor Messages: 4 Registered: July 2009 |
Junior 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04288 seconds