internal override AnalysisOccurrence OccurrenceContainingSelection()
{
if (m_rootb == null)
return null;
// This works fine for non-Sandbox panes,
// Sandbox panes' selection may be in the Sandbox.
if (ExistingFocusBox != null &&
ExistingFocusBox.SelectedOccurrence != null &&
ExistingFocusBox.SelectedOccurrence.IsValid)
{
return ExistingFocusBox.SelectedOccurrence;
}
// If the above didn't work, this probably won't either, but try anyway...
return base.OccurrenceContainingSelection();
}