could some one help me a bit. I am trying to run some code, when my diagram view loses focus/ gains focus. In emf editor its quite easy you only need to edit partBroughtToTop or partDeactivated in the editor code. But i cant manage to do the same for gmf .diagram.
Mickael Istria Messages: 612 Registered: July 2009 Location: Grenoble, France
Senior Member
Some different ideas:
* From your generated Editor class, you can use
getGraphicalControl().addFocusListener().
* Add a listener on the EditorSite page ->
editor.getEditorSite().getPage().addPartListener(). In your
IPartListener, check that the part that sends the notification if your
editor.
However, you can still open a feature request against GMF-Runtime to
explain your use-case and suggest an improvement.