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
result.addAll(analyze(packs[i]));
		}
		return result;		
	}
	
	/*
	 * @param List of NonNLSElements
	 */
	private static int countStrings(List elements){
		int i= 0;
		for (Iterator iter= elements.iterator(); iter.hasNext(); )
			i += (((NonNLSElement)iter.next()).count);
		return i;	
	} 
	
	private NonNLSElement analyze(ICompilationUnit cu) throws JavaModelException{
		return new NonNLSElement(cu, countNotExternalizedStrings(cu));
	}
	
	private int countNotExternalizedStrings(ICompilationUnit cu){
		try{
			NLSLine[] lines= NLSScanner.scan(cu);
			int result= 0;
			for (int i= 0; i < lines.length; i++) {
				result += countNotExternalizedStrings(lines[i]);
			}
			return result;
		}catch(JavaModelException e) {
			ExceptionHandler.handle(e, 
				ActionMessages.getString("FindStringsToExternalizeAction.dialog.title"),