Bug 12884 find strings to externalize - should be cancelable
instead of a busy cursor it should show a progress dialog with cancelation
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindStringsToExternalizeAction.java
*/
	public FindStringsToExternalizeAction(UnifiedSite site) {
		super(site);
		setText(ActionMessages.getString("FindStringsToExternalizeAction.label")); 
	}
	
	
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction.
	 */
	protected void selectionChanged(IStructuredSelection selection) {
		setEnabled(computeEnablementState(selection));
	}
	
	private boolean computeEnablementState(IStructuredSelection selection) {
		if (selection.size() == 0)
			return false;
		for (Iterator iter= selection.iterator(); iter.hasNext();) {
			Object element= (Object)iter.next();
			if (!(element instanceof IJavaElement))
				return false;
			int elementType= ((IJavaElement)element).getElementType();
			if (elementType !=  IJavaElement.PACKAGE_FRAGMENT && elementType != IJavaElement.PACKAGE_FRAGMENT_ROOT &&
					elementType != IJavaElement.JAVA_PROJECT)
				return false;
		}
		return true;
	}
	
	/* (non-Javadoc)