Bug 31962 Package Explorer context menu should not allow refresh on a closed project
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefreshAction.java
/**
	 * Creates a new <code>RefreshAction</code>. The action requires
	 * that the selection provided by the site's selection provider is of type <code>
	 * org.eclipse.jface.viewers.IStructuredSelection</code>.
	 * 
	 * @param site the site providing context information for this action
	 */
	public RefreshAction(IWorkbenchSite site) {
		super(site);
		setText(ActionMessages.getString("RefreshAction.label")); 
		setToolTipText(ActionMessages.getString("RefreshAction.toolTip")); 
		WorkbenchHelp.setHelp(this, IJavaHelpContextIds.REFRESH_ACTION);
	}
	
	/* (non-Javadoc)
	 * Method declared in SelectionDispatchAction