Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » restore diagram problem
restore diagram problem [message #228052] Thu, 14 December 2006 08:49 Go to next message
Eclipse UserFriend
Originally posted by: Sferzah.yandex.ru

i save my diagram to RDB.
to open saved diagram i full restore diagrammodel and set it as input to
my editor

workbenchWindow.getActivePage().openEditor(input, MyEditor.EDITOR_ID,
true);

some elements on diagram need to perform refreshVisual() method, how
(where) i can do that?
Re: restore diagram problem [message #228126 is a reply to message #228052] Sat, 16 December 2006 00:40 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi Alexey,

When you open up the editor and #setContents() is called root edit part
creates children for itself. Edit part factory creates edit parts for
model elements which are read from the digram resource file. As soon as
edit part is created it's refreshed and edit part's visuals are refreshed
too. So, this should be done automatically - you'll have to debug
AbstarctEditPart#refreshChildren to find out what the problem is.

Cheers,

Alex
Re: restore diagram problem [message #228199 is a reply to message #228126] Mon, 18 December 2006 06:41 Go to previous message
Eclipse UserFriend
Originally posted by: Sferzah.yandex.ru

yes you are right, thank you! it was my bug really.
Previous Topic:How to change (Target)Anchor dynamicly?
Next Topic:painting Figure
Goto Forum:
  


Current Time: Tue Apr 23 16:31:30 GMT 2024

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

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

Back to the top