Use Workspace::getActivePaneItem()