Skip to main content



      Home
Home » Eclipse Projects » GEF » AbstractEditPart
AbstractEditPart [message #33250] Thu, 17 October 2002 12:41 Go to next message
Eclipse UserFriend
Originally posted by: jan.odvarko.schemantix.com

Hi all,
I am working with GEF and I am not sure
about an implementation of the refresh method
in AbstractEditPart class see following snippet.

public void refresh(){
debug("refresh");//$NON-NLS-1$
refreshVisuals();
refreshChildren();
}

I would perform the refreshing in opposite way.
I mean that visuals should be refreshed after
the children. I have to arguments...

#1 The refreshChildren method can create
new visuals, which aren't refershed
afterwards.

#2 The refreshVisuals method could require
all visual objects to exist, which means
created by the refreshChildren before.

Of course, it isn't a problem to override
the method, but I would like to be sure
I understand the framework.

Am I wronng, or not?

cheers

Honza
Re: AbstractEditPart [message #33289 is a reply to message #33250] Thu, 17 October 2002 14:15 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

"Jan Odv
Previous Topic:GEF and EMF
Next Topic:Connection Anchors base on Mouse Click
Goto Forum:
  


Current Time: Sat Jul 05 07:23:39 EDT 2025

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

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

Back to the top