| 
| Efficiently Reloading the diagram [message #119500] | Wed, 25 February 2004 20:10  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: brianv.phreaker.net 
 I have a multipage editor,  with one page displaying text and the other page
 displying it's graphical representation. When a user makes a change to the
 text, I need to update the diagram as well - since It isn't very easy to
 patch an existing diagram based on the users additions or deletions, I've
 opted to scrap the existing diagram and reload it. So I create a new diagram
 and pass it to setContents. This works just fine, but I was wondering about
 the efficiency aspects.
 
 The diagram has a lot of icons, and quite a few nodes and connections - is
 there anything I can do so that System resource are reclaimed asap ? Beyond
 models and editparts, I was concerned about figures, SWT widgets, etc.
 
 Any suggestions ?
 Brian.
 |  |  |  | 
| 
| Re: Efficiently Reloading the diagram [message #119541 is a reply to message #119500] | Wed, 25 February 2004 22:31  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: none.us.ibm.com 
 There are no OS handles in draw2d.  If you are using images heavily, you
 should have a central place where images are made available and disposed
 when appropriate.
 
 "Brian Fernandes" <brianv@phreaker.net> wrote in message
 news:c1jeul$7kp$1@eclipse.org...
 > I have a multipage editor,  with one page displaying text and the other
 page
 > displying it's graphical representation. When a user makes a change to the
 > text, I need to update the diagram as well - since It isn't very easy to
 > patch an existing diagram based on the users additions or deletions, I've
 > opted to scrap the existing diagram and reload it. So I create a new
 diagram
 > and pass it to setContents. This works just fine, but I was wondering
 about
 > the efficiency aspects.
 >
 > The diagram has a lot of icons, and quite a few nodes and connections - is
 > there anything I can do so that System resource are reclaimed asap ?
 Beyond
 > models and editparts, I was concerned about figures, SWT widgets, etc.
 >
 > Any suggestions ?
 > Brian.
 >
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.16353 seconds