private void addImportsToTypesReferencedInMethodDeclarations(StringBuffer buff) throws JavaModelException { ITypeBinding[] typesUsed= getTypesUsedInExtractedMethodDeclarations(); for (int i= 0; i < typesUsed.length; i++) { ITypeBinding binding= typesUsed[i]; if (shouldBeImported(binding)) addImportTo(Bindings.getFullyQualifiedImportName(binding), buff); } }
private void addImportsToTypesReferencedInMethodDeclarations(ImportsStructure is, IProgressMonitor pm) throws JavaModelException { ITypeBinding[] typesUsed= getTypesUsedInExtractedMethodDeclarations(); pm.beginTask("", typesUsed.length); for (int i= 0; i < typesUsed.length; i++) { is.addImport(typesUsed[i]); pm.worked(1); } pm.done(); }
    private void addImportsToTypesReferencedInMethodDeclarations(StringBuffer buff) throws JavaModelException {        ITypeBinding[] typesUsed= getTypesUsedInExtractedMethodDeclarations();        for (int i= 0; i < typesUsed.length; i++) {        	ITypeBinding binding= typesUsed[i];        	if (shouldBeImported(binding))        	    addImportTo(Bindings.getFullyQualifiedImportName(binding), buff);        }    }