void WorkbenchPagePartList::FireActiveEditorChanged( IWorkbenchPartReference::Pointer ref) { if (ref.IsNotNull()) { this->FirePartBroughtToTop(ref); } }
void PartService::SetActivePart(IWorkbenchPartReference::Pointer ref) { IWorkbenchPartReference::Pointer oldRef = activePart.Lock(); // Filter out redundant activation events if (oldRef == ref) { return; } if (oldRef.IsNotNull()) { this->FirePartDeactivated(oldRef); } activePart = ref; if (ref.IsNotNull()) { this->FirePartActivated(ref); } }