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
fImportOnDemandThreshold= Integer.MAX_VALUE;
		fReplaceExistingImports= false;
	}
	/**
	 * Creates an ImportsStructure for a compilation unit where exiting imports should be
	 * completly ignored. Create will replace all existing imports 
	 * @param preferenceOrder Defines the prefered order of imports.
	 * @param importThreshold Defines the number of imports in a package needed to introduce a
	 * import on demand instead (e.g. java.util.*)
	 */
	public ImportsStructure(ICompilationUnit cu, String[] preferenceOrder, int importThreshold) {
		fCompilationUnit= cu;
		int nEntries= preferenceOrder.length;
		
		fPackageEntries= new ArrayList(20 + nEntries);
		for (int i= 0; i < nEntries; i++) {
			PackageEntry entry= new PackageEntry(preferenceOrder[i], i);
			fPackageEntries.add(entry);
		}			
		
		fImportOnDemandThreshold= importThreshold;
		fReplaceExistingImports= true;
	}	
		
	public ICompilationUnit getCompilationUnit() {
		return fCompilationUnit;
	}
			
	private static boolean sameMatchLenTest(String newName, String bestName, String currName, int matchLen) {