[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: problem disposing a view
|
- From: Paul Webster <pwebster@xxxxxxxxxx>
- Date: Thu, 19 Apr 2007 09:05:42 -0400
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.10 (X11/20070302)
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