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:

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,

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.


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:

yes you are right, thank you! it was my bug really.
Previous Topic:a question about connection
Next Topic:Tools as Actions?
Goto Forum:

Current Time: Sun Nov 28 14:31:13 GMT 2021

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

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

Back to the top