Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Editors Deletions Selections and NullPointerException
Editors Deletions Selections and NullPointerException [message #201993] Sat, 05 November 2005 03:38
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Here is the situation. Two Editors opened on the same model. Each
editor creates its own set of editparts etc. I select Triangle One in
the first editor, I then select the same triangle in the 2nd editor.
Now both editors have the same thing selected so to speak.

I delete the edit part in the first editor. This deletes it in the
model. Both hosting edit parts are listening to the model so they
refresh their children and appropriately remove the deleted editpart.

However, while the editpart has been removed, it seems to still be
selected in the other editor. When The other editor is activated, the
selection is still the editpart that was deleted. This causes my
actions to complain since I assume selected editparts will always have
parents (which they should since the host is their parent or they
couldn't be selected at all).


What am I doing wrong? How do I get an inactive editor to update its
selection when its children are altered? Or how do I get an editor to
update its selection when it is activated _before_ it updates its
selection actions? Or is this a bug?

I know there are tons of ways around this. I am looking for the one
most conssitent with the GEF style.


Thanks,


CL
Previous Topic:exclude selection rectangle from adjusting scrollbars
Next Topic:setMinimumSize() does nothing
Goto Forum:
  


Current Time: Fri Apr 19 16:11:27 GMT 2024

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

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

Back to the top