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/ImportsStructure.java
private ICompilationUnit fCompilationUnit;
	private ArrayList fPackageEntries;
	
	private int fImportOnDemandThreshold;
	
	private boolean fReplaceExistingImports;
	
	/**
	 * Creates an ImportsStructure for a compilation unit with existing
	 * imports. New imports are added next to the existing import that
	 * has the best match.
	 */
	public ImportsStructure(ICompilationUnit cu) throws JavaModelException {
		fCompilationUnit= cu;
		IImportDeclaration[] decls= cu.getImports();
		fPackageEntries= new ArrayList(decls.length + 5);
		
		PackageEntry curr= null;
		for (int i= 0; i < decls.length; i++) {			
			String packName= Signature.getQualifier(decls[i].getElementName());
			if (curr == null || !packName.equals(curr.getName())) {
				curr= new PackageEntry(packName, -1);
				fPackageEntries.add(curr);
			}
			curr.add(decls[i]);
		}