Bug 117055 [clean up][string fix] Wrong preview node name
Version: 3.2.0 Build id: I20051116-1332 Having: public class E { public String s1; //$NON-NLS-1$ public String s2 = ""; } Running Source -> Clean Up -> Add/Remove NON NLS tag The nodes for the edit groups on the preview page are: &Remove unneccessary '$NON-NLS$' tag &Add missing '$NON-NLS$'tag but there should be no '&'.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/StringMultiFix.java
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.compiler.IProblem;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.internal.corext.fix.IFix;
import org.eclipse.jdt.internal.corext.fix.StringFix;
import org.eclipse.jdt.internal.corext.fix.TextChangeFix;
import org.eclipse.jdt.internal.corext.refactoring.changes.CompilationUnitChange;
import org.eclipse.jdt.internal.corext.refactoring.changes.TextChangeCompatibility;
import org.eclipse.jdt.internal.corext.refactoring.nls.NLSUtil;
/**
 * Create fixes which can solve problems in connection with Strings
 * @see org.eclipse.jdt.internal.corext.fix.StringFix
 *
 */
public class StringMultiFix extends AbstractMultiFix {
	private static final String REMOVE_NLS_TAG_SETTINGS_ID= "RemoveNlsTag"; 
	private static final String ADD_NLS_TAG_SETTINGS_ID= "AddNlsTag"; 
	
	private boolean fAddNlsTag;
	private boolean fRemoveNlsTag;
	public StringMultiFix(boolean addNLSTag, boolean removeNLSTag) {
		init(addNLSTag, removeNLSTag);
	}
	public StringMultiFix(IDialogSettings settings) {
		if (settings.get(ADD_NLS_TAG_SETTINGS_ID) == null) {
			settings.put(ADD_NLS_TAG_SETTINGS_ID, false);
		}
		if (settings.get(REMOVE_NLS_TAG_SETTINGS_ID) == null) {
			settings.put(REMOVE_NLS_TAG_SETTINGS_ID, true);