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
}
		return len;
	}	
	
	private static char getCharAt(String str, int index) {
		if (str.length() > index) {
			return str.charAt(index);
		}
		return 0;
	}
	
	/**
	 * Creates all new elements in the import structure.
	 * Returns all created IImportDeclaration. Does not return null
	 */	
	public IImportDeclaration[] create(boolean save, IProgressMonitor monitor) throws CoreException {
		DocumentManager docManager= new DocumentManager(fCompilationUnit);
		docManager.connect();
		try {
			IImportDeclaration[] res= create(docManager.getDocument(), monitor);			
			if (save) {
				docManager.save(null);
			}
			return res;
		} finally {
			docManager.disconnect();
		}
	}	
	/**
	 * Creates all new elements in the import structure.