Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Remove events are ignored
Remove events are ignored [message #9784] Tue, 08 August 2006 08:35 Go to next message
No real name is currently offline No real nameFriend
Messages: 33
Registered: July 2009
Member
Hi have an EMF model and a cannonical GMF diagram attached to it. When I
add an element in the EMF model, it automatically appears in the
diagram. Unfortunately, deleting does not work. Removal events are
ignored and I have to reload the diagram to make the removed elements
disappear. Am I missing something?

Thanx
Jan
Re: Remove events are ignored [message #11239 is a reply to message #9784] Tue, 08 August 2006 20:57 Go to previous messageGo to next message
Mohammed Mostafa is currently offline Mohammed MostafaFriend
Messages: 143
Registered: July 2009
Senior Member
This is a multipart message in MIME format.
--=_alternative 00736871852571C4_=
Content-Type: text/plain; charset="US-ASCII"

HI;
The Remove events are not ignored, they are handled already and
being forwarded by the DiagramEventBroker to the listeners
Add a break point to the notifychanged method on the canonical edit
policy, and check if this break point hits when you delete your semantic
element. This might give us some clues.
What we need to check: is refresh being called on your edit policy or not?
and if it is called is it deleting the views when you delete the semantic
elements or not ?
--=_alternative 00736871852571C4_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">HI; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; The
Remove events are not ignored, they are handled already and being forwarded
by the DiagramEventBroker to the listeners</font>
<br><font size=2 face="sans-serif">Add a break point to the notifychanged
method on the canonical edit policy, and check if this break point hits
when you delete your semantic element. This might give us some clues.</font>
<br><font size=2 face="sans-serif">What we need to check: is refresh being
called on your edit policy or not? and if it is called is it deleting the
views when you delete the semantic elements or not ?</font>
--=_alternative 00736871852571C4_=--
Re: Remove events are ignored [message #11920 is a reply to message #9784] Wed, 09 August 2006 13:03 Go to previous message
Mohammed Mostafa is currently offline Mohammed MostafaFriend
Messages: 143
Registered: July 2009
Senior Member
This is a multipart message in MIME format.
--=_alternative 0048002D852571C5_=
Content-Type: text/plain; charset="US-ASCII"

One Thing to keep in mind, the fact that your shapes are canonical means
they should be deleted when the element they represent is deleted this can
be achieved in 2 ways
1- since they are canonical the canonical edit policy can delete the
orphaned views
2- or in general delete and view when it element is deleted, which can be
achieved using the NotationViewDependentsAdvice

my first replay was assuming you are using the first approach, if you are
using the second approach and having troubles let us know and we will
answer your questions
--=_alternative 0048002D852571C5_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">One Thing to keep in mind, the fact
that your shapes are canonical means &nbsp;they should be deleted when
the element they represent is deleted this can be achieved in 2 ways</font>
<br><font size=2 face="sans-serif">1- since they are canonical the canonical
edit policy can delete the orphaned views</font>
<br><font size=2 face="sans-serif">2- or in general delete and view when
it element is deleted, which can be achieved using the NotationViewDependentsAdvice</font>
<br>
<br><font size=2 face="sans-serif">my first replay was assuming you are
using the first approach, if you are using the second approach and having
troubles let us know and we will answer your questions</font>
--=_alternative 0048002D852571C5_=--
Previous Topic:Searchable archive of eclipse.technology.gmf ?
Next Topic:external repository and GMF
Goto Forum:
  


Current Time: Sun Oct 06 09:34:01 GMT 2024

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

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

Back to the top