Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Efficiently Reloading the diagram
Efficiently Reloading the diagram [message #119500] Thu, 26 February 2004 01:10 Go to next message
Eclipse UserFriend
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] Thu, 26 February 2004 03:31 Go to previous message
Eclipse UserFriend
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.
>
>
Previous Topic:Connection Retarget problem
Next Topic:Is it ok for command to show dialogs?
Goto Forum:
  


Current Time: Sat Oct 19 10:57:22 GMT 2024

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

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

Back to the top