libsToGen.add(COM4J.loadTypeLibrary(lib.getFile()).queryInterface(IWTypeLib.class));
}
ReferenceResolver resolver = new ReferenceResolver() {
public String resolve(IWTypeLib lib) {
GUID libid = lib.getLibid();
if( libs.containsKey(libid) ) {
String pkg = libs.get(libid).getPackage();
if(pkg!=null)
return pkg;
}
// TODO: move this to a filter
if( libid.equals(GUID_STDOLE))
return ""; // don't generate STDOLE. That's replaced by com4j runtime.
if( libsToGen.add(lib) )
el.warning(Messages.REFERENCED_TYPELIB_GENERATED.format(lib.getName(),packageName));
return packageName;
}
public boolean suppress(IWTypeLib lib) {
GUID libid = lib.getLibid();
if( libid.equals(GUID_STDOLE))
return true;
Lib r = libs.get(libid);
if(r!=null)
return r.suppress();