public void selectionChanged(IAction action, ISelection selection) {
action.setEnabled(false);
_selectedProject = null;
if (selection != null && selection instanceof IStructuredSelection) {
IStructuredSelection structSelection = (IStructuredSelection) selection;
Object selectedElement = structSelection.getFirstElement();
if (selectedElement instanceof IProject || selectedElement instanceof IJavaProject) {
_selectedProject = (IProject) selectedElement;
} else if (selectedElement instanceof IContainer) {
IContainer container = (IContainer) selectedElement;
if (container.getParent() instanceof IProject &&