protected org.eclipse.core.filebuffers.IDocumentFactory doGetDocumentFactory(IContentType[] contentTypes){
  Set set=null;
  int i=0;
  while (i < contentTypes.length && set == null) {
    set=(Set)fFactoryDescriptors.get(new ContentTypeAdapter(contentTypes[i++]));
  }
  if (set != null) {
    IConfigurationElement entry=selectConfigurationElement(set);
    return (org.eclipse.core.filebuffers.IDocumentFactory)getExtension(entry,fFactories,org.eclipse.core.filebuffers.IDocumentFactory.class);
  }
  return null;
}

protected org . eclipse . core . filebuffers . IDocumentFactory doGetDocumentFactory ( IContentType [ ] contentTypes ) { Set set = null ; int i = 0 ; while ( i < contentTypes . length && set == null ) { set = ( Set ) fFactoryDescriptors . get ( new ContentTypeAdapter ( contentTypes [ i ++ ] ) ) ; } if ( set != null ) { IConfigurationElement entry = selectConfigurationElement ( set ) ; return ( org . eclipse . core . filebuffers . IDocumentFactory ) getExtension ( entry , fFactories , org . eclipse . core . filebuffers . IDocumentFactory . class ) ; } return null ; }
returns a sharable document factory for the given content types .
