[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: Finding the active IViewReference in an IViewPart
|
- From: Paul Webster <pwebster@xxxxxxxxxx>
- Date: Thu, 19 Apr 2007 08:38:38 -0400
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.10 (X11/20070302)
uh, that doesn't quite make sense.
IPartListener2#partActivated(*) will fire for each part that is activated.
The *last* fired event will be the active IWorkbenchPartReference
(IViewReference or IEditorReference).
You can also ask the IWorkbenchPage to return the current active part
ref via getActivePartReference()
Later,
PW