String format = configs[j].getAttribute("format"); String mimeType = configs[j].getAttribute("mimeType"); if(!emitterExtensions.containsKey(format)) { emitterExtensions.put(format, configs[j]); mimeTypes.put(format, mimeType); logger.log(Level.FINE, "Load {0} emitter", format); }
String format = configs[j].getAttribute("format"); String mimeType = configs[j].getAttribute("mimeType"); String id = configs[j].getAttribute("id"); emitterExtensions.add(new EmitterInfo(format, id, configs[j])); mimeTypes.put(mimeType, format); logger.log(Level.FINE, "Load {0} emitter {1}", new String[]{format, id});
	protected void loadEmitterExtensionDefns()	{		IExtensionRegistry registry = Platform.getExtensionRegistry(); 		IExtensionPoint extPoint = registry.getExtensionPoint(EXTENSION_POINT_EMITTERS);		if(extPoint==null)			return;		IExtension[] exts = extPoint.getExtensions();		logger.log(Level.FINE, "Start load extension point: {0}", EXTENSION_POINT_EMITTERS); //$NON-NLS-1$		for (int i = 0; i < exts.length; i++)	// loop at emitters level, i.e., fo or html		{			IConfigurationElement[] configs = exts[i].getConfigurationElements();			for (int j = 0; j < configs.length; j++)	// loop at emitter level 			{								String format = configs[j].getAttribute("format");	// $NON-NLS-1$				String mimeType = configs[j].getAttribute("mimeType");	// $NON-NLS-1$				if(!emitterExtensions.containsKey(format))				{					emitterExtensions.put(format, configs[j]);					mimeTypes.put(format, mimeType);					logger.log(Level.FINE, "Load {0} emitter", format); //$NON-NLS-1$				}							}		}	}