}
public IStructuredSelection findSelection(IEditorInput anInput) {
IEditorPart part = EditorUtils.isOpenInEditor(anInput);
if( part instanceof MBeanEditor ) {
MBeanEditor editor = (MBeanEditor)part;
Object page = editor.getSelectedPage();
IStructuredSelection sel = null;
if( page instanceof AttributesPage) {
sel = ((AttributesPage)page).getSelection();
} else if( page instanceof OperationsPage) {
sel = ((OperationsPage)page).getSelection();