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
* Returns all created IImportDeclaration. Does not return null
	 */	
	public IImportDeclaration[] create(IDocument doc, IProgressMonitor monitor) throws CoreException {
		ArrayList created= new ArrayList();
		try {
			performCreate(created, doc);
		} finally {
			if (monitor != null) {
				monitor.done();
			}
		}
		return (IImportDeclaration[]) created.toArray(new IImportDeclaration[created.size()]);	
	}
			
		
	private int getPackageStatementEndPos() throws JavaModelException {
		IPackageDeclaration[] packDecls= fCompilationUnit.getPackageDeclarations();
		if (packDecls != null && packDecls.length > 0) {
			ISourceRange range= packDecls[0].getSourceRange();
			return range.getOffset() + range.getLength();  
		}
		return 0;
	}
	
	
	private void performCreate(ArrayList created, IDocument doc) throws JavaModelException {
		int importsStart, importsLen;
		
		
		String lineDelim= StubUtility.getLineDelimiterFor(doc);