Bug 31708 Make changes to RefreshAction to sync up code with workbench
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefreshAction.java
WorkbenchHelp.setHelp(this, IJavaHelpContextIds.REFRESH_ACTION);
	}
	
	/* (non-Javadoc)
	 * Method declared in SelectionDispatchAction
	 */
	protected void selectionChanged(IStructuredSelection selection) {
		setEnabled(checkEnabled(selection));
	}
	private boolean checkEnabled(IStructuredSelection selection) {
		if (selection.isEmpty())
			return true;
		for (Iterator iter= selection.iterator(); iter.hasNext();) {
			Object element= (Object) iter.next();
			if (element instanceof IAdaptable) {
				IResource resource= (IResource)((IAdaptable)element).getAdapter(IResource.class);
				if (resource == null)
					return false;
			} else {
				return false;
			}
		}
		return true;
	}
	/* (non-Javadoc)
	 * Method declared in SelectionDispatchAction
	 */
	protected void run(IStructuredSelection selection) {
		final IResource[] resources= getResources(selection);
		IWorkspaceRunnable operation= new IWorkspaceRunnable() {