public void selectionChanged(IAction action, ISelection selection) {
selectedBean = null;
selectedFile = null;
if (selection instanceof TreeSelection) {
TreeSelection treeSelection = (TreeSelection) selection;
Object[] objects = treeSelection.toArray();
if (objects != null && objects.length == 1) {
if (objects[0] instanceof IBean) {
IBean bean = (IBean) objects[0];
IResource resource = bean.getElementResource();
if (resource instanceof IFile) {