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
int lastPos;
		StringBuffer buf= new StringBuffer();
		IImportContainer container= fCompilationUnit.getImportContainer();
		if (container.exists()) {
			ISourceRange importSourceRange= container.getSourceRange();
			importsStart= importSourceRange.getOffset();
			importsLen= importSourceRange.getLength();
			if (!fReplaceExistingImports) {
				buf.append(container.getSource());
			}
			lastPos= buf.length();
		} else {
			importsStart= getPackageStatementEndPos();
			importsLen= 0;
			lastPos= 0;			
		}
		
		
		IType[] topLevelTypes= fCompilationUnit.getTypes();
	
		int lastCategory= -1;
		
		
		for (int i= fPackageEntries.size() -1; i >= 0; i--) {
			PackageEntry pack= (PackageEntry) fPackageEntries.get(i);
			int nImports= pack.getNumberOfImports();
			if (nImports > 0) {
				String packName= pack.getName();
				if (isImportNeeded(packName, topLevelTypes)) {