public void selectionChanged(IStructuredSelection selection) { if (selection.isEmpty()) { setEnabled(hasCloseProjects()); fMode= EMPTY_SELECTION; return; } fWorkbenchAction.selectionChanged(selection); setEnabled(fWorkbenchAction.isEnabled()); fMode= ELEMENT_SELECTION;
public void selectionChanged(ISelection selection) { setEnabled(hasCloseProjects()); fMode= EMPTY_SELECTION;
	public void selectionChanged(IStructuredSelection selection) {		if (selection.isEmpty()) {			setEnabled(hasCloseProjects());			fMode= EMPTY_SELECTION;			return;		}		fWorkbenchAction.selectionChanged(selection);		setEnabled(fWorkbenchAction.isEnabled());		fMode= ELEMENT_SELECTION;	}