[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: problem disposing a view

1) never call view or editor dispose().

2) I would expect you to remove the listeners in your *dispose()* method

3) if you registered with an editor, you need to remove yourself from the editor. If you registered with the main selection service, you can remove yourself from it.

4) if you are using ISelectionService#addSelectionListener(String partId, ISelectionListener listener) it will not correctly track editors. Use the normal selection service and check that the part is in instance of the Editor you are tracking, or that the part id is the ID of the editor you are tracking.

Later,
PW