Object element = (Object) iter.next();
Object element =  iter.next();
	public final void run(final IAction action) {		if (!selection.isEmpty()) {			if (selection instanceof IStructuredSelection) {				IStructuredSelection structuredSelection = (IStructuredSelection) selection;				for (Iterator iter = structuredSelection.iterator(); iter.hasNext(); ) {					Object element = (Object) iter.next();					IResource resource = (IResource) ((IAdaptable)element).getAdapter(IResource.class);					if (resource==null)						continue;										work(resource);				}			}		}	}