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
buf.append(parentType.getElementName());
						buf.append('.');
					} else {
						buf.append("this."); 
					}
				}
				buf.append(fieldName); buf.append("= "); buf.append(argname); buf.append(";\n}\n"); 
				
				IJavaElement sibling= null;
				if (existing != null) {
					sibling= StubUtility.findSibling(existing);
					existing.delete(false, null);
				}
				
				String formattedContent= StubUtility.codeFormat(buf.toString(), indent, lineDelim) + lineDelim;
				fCreatedAccessors.add(parentType.createMethod(formattedContent, sibling, true, null));
			}
		} finally {
			monitor.done();
		}
	}
	
	/**
	 * Returns the created accessors. To be called after a sucessful run.
	 */
	public IMethod[] getCreatedAccessors() {
		return (IMethod[]) fCreatedAccessors.toArray(new IMethod[fCreatedAccessors.size()]);
	}
}