Skip to main content



      Home
Home » Eclipse Projects » GEF » reloading the model
reloading the model [message #114863] Fri, 30 January 2004 08:46 Go to next message
Eclipse UserFriend
Originally posted by: nospam.gmx.net

Hi GEFfers!

Sometimes i encounter Exceptions in myGEF Editor which are deep inside the
Draw2d framework.
(e.g. LinkFigure has no parent layer, AbstractEditpart.getRoot returns
null ).

I assume that happens because in some situations, i reload the model
and with the Editor#setContents() method.

What is the best way to clean up the editor in order to rebuild the Diagram?

Regards, Ingo
Re: reloading the model [message #114878 is a reply to message #114863] Fri, 30 January 2004 09:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ingo Koch wrote:
| Hi GEFfers!
|
| Sometimes i encounter Exceptions in myGEF Editor which are deep inside the
| Draw2d framework.
| (e.g. LinkFigure has no parent layer, AbstractEditpart.getRoot returns
| null ).
|
| I assume that happens because in some situations, i reload the model
| and with the Editor#setContents() method.
|
| What is the best way to clean up the editor in order to rebuild the
Diagram?
|
| Regards, Ingo
|
|
|
|

have you tried refresh on editparts?

- --
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAGm5oVbJM14DSCi0RAvEwAJ9JZeeCsyaoSOGBae7PoJPABq4s2QCg k9LU
JkSDIPwLpse4DOoLlyUdRVk=
=heHq
-----END PGP SIGNATURE-----
Re: reloading the model [message #114956 is a reply to message #114863] Fri, 30 January 2004 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

AFAIK the editparts should always be in sync with the model. If you are
reloading the model because of resource change event then setContents should
work fine.

"Ingo Koch" <nospam@gmx.net> wrote in message
news:bvdn36$gb1$1@eclipse.org...
> Hi GEFfers!
>
> Sometimes i encounter Exceptions in myGEF Editor which are deep inside the
> Draw2d framework.
> (e.g. LinkFigure has no parent layer, AbstractEditpart.getRoot returns
> null ).
>
> I assume that happens because in some situations, i reload the model
> and with the Editor#setContents() method.
>
> What is the best way to clean up the editor in order to rebuild the
Diagram?
>
> Regards, Ingo
>
>
>
>
Re: reloading the model [message #115095 is a reply to message #114956] Mon, 02 February 2004 04:41 Go to previous message
Eclipse UserFriend
Originally posted by: nospam.gmx.net

Hello Randy,

i found the bug which caused these strange error (model created a link with
no target, which , on reload called a deactivateFigure() where there was no
figure ).

But now I
Previous Topic:Extending the Rulers
Next Topic:DND
Goto Forum:
  


Current Time: Sat Jun 07 08:52:53 EDT 2025

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

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

Back to the top