Bug 3811 Setter / Getter generates setter for final fields (1GEUMGT)
- private final String fName; - generate Setter and Getter - you get public void setName(String name) { fName= name; } which produces a compile error. NOTES: EG (6/5/2001 3:41:01 AM) not critical, can be documented. MA (02.08.2001 16:49:08) fixed in 200
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/codemanipulation/AddGetterSetterOperation.java
}				
				
				String formattedContent= StubUtility.codeFormat(buf.toString(), indent, lineDelim) + lineDelim;
				fCreatedAccessors.add(parentType.createMethod(formattedContent, sibling, true, null));
			}
			
			monitor.worked(1);
									
			String setterName= "set" + accessorName; 
			String[] args= new String[] { field.getTypeSignature() };		
			
			
			boolean isFinal= Flags.isFinal(field.getFlags());
			existing= JavaModelUtil.findMethod(setterName, args, false, parentType);
			if (!(isFinal && querySkipFinalSetters(field)) && !(existing != null && querySkipExistingMethods(existing))) {
				
				StringBuffer buf= new StringBuffer();
				buf.append("/**\n"); 
				buf.append(" * Sets the "); buf.append(argname); buf.append(".\n"); 
				buf.append(" * @param "); buf.append(argname); buf.append(" The "); buf.append(argname); buf.append(" to set\n"); 
				buf.append(" */\n"); 
				buf.append("public "); 
				if (isStatic) {
					buf.append("static "); 
				}
				buf.append("void "); buf.append(setterName); 
				buf.append('('); buf.append(typeName); buf.append(' '); 
				buf.append(argname); buf.append(") {\n"); 
				if (argname.equals(fieldName)) {
					if (isStatic) {