Bug 117295 [clean up][infrastructure] Light clean up
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/StringMultiFix.java
private boolean fRemoveNlsTag;
	public StringMultiFix(boolean addNLSTag, boolean removeNLSTag) {
		fAddNlsTag= addNLSTag;
		fRemoveNlsTag= removeNLSTag;
	}
	public StringMultiFix(IDialogSettings settings) {
		this(settings.getBoolean(ADD_NLS_TAG_SETTINGS_ID), settings.getBoolean(REMOVE_NLS_TAG_SETTINGS_ID));
	}
	public IFix createFix(CompilationUnit compilationUnit) throws CoreException {
		if (compilationUnit == null)
			return null;
		
		if (!fAddNlsTag && !fRemoveNlsTag)
			return null;
		
		IProblem[] problems= compilationUnit.getProblems();
		
		if (problems.length == 0)
			return null;
		
		CompilationUnitChange result= null;
		
		ICompilationUnit cu= (ICompilationUnit)compilationUnit.getJavaElement();
		
		for (int i= 0; i < problems.length; i++) {
			IProblem problem= problems[i];
			if (fAddNlsTag && problem.getID() == IProblem.NonExternalizedStringLiteral) {
				TextEdit edit= NLSUtil.createNLSEdit(cu, problem.getSourceStart());
				if (edit != null) {
					if (result == null)