if (key.indexOf(NLSHolder.UNWANTED_STRINGS[i]) != -1) result.addError(NLSMessages.getString("NLSrefactoring.key") + key + NLSMessages.getString("NLSrefactoring.should_not_contain") + "'" + NLSHolder.UNWANTED_STRINGS[i] + "'");
if (key.indexOf(NLSHolder.UNWANTED_STRINGS[i]) != -1){ String[] args= {key, NLSHolder.UNWANTED_STRINGS[i]}; String msg= NLSMessages.getFormattedString("NLSrefactoring.should_not_contain", args); result.addError(msg); }
	public static RefactoringStatus checkKey(String key){		RefactoringStatus result= new RefactoringStatus();				if (key == null)			result.addFatalError(NLSMessages.getString("NLSrefactoring.null")); //$NON-NLS-1$		if (key.startsWith("!") || key.startsWith("#")){ //$NON-NLS-1$ //$NON-NLS-2$			Context context= new StringContext(key, new SourceRange(0, 0));			result.addWarning(NLSMessages.getString("NLSRefactoring.warning"), context); //$NON-NLS-1$		}						if ("".equals(key.trim())) //$NON-NLS-1$			result.addFatalError(NLSMessages.getString("NLSrefactoring.empty")); //$NON-NLS-1$				//feature in resource bundle - does not work properly if keys have ":"		for (int i= 0; i < NLSHolder.UNWANTED_STRINGS.length; i++){			if (key.indexOf(NLSHolder.UNWANTED_STRINGS[i]) != -1)				result.addError(NLSMessages.getString("NLSrefactoring.key") + key + NLSMessages.getString("NLSrefactoring.should_not_contain") + "'" + NLSHolder.UNWANTED_STRINGS[i] + "'"); //$NON-NLS-4$ //$NON-NLS-3$ //$NON-NLS-2$ //$NON-NLS-1$		}		return result;	}