InputStream stream = Activator.getFile("templates/GXTEditors.xml");
Map<String, DescriptorContainer> containers =
DescriptorContainer.parseDescriptors(
stream,
GxtDatabindingProvider.class.getClassLoader(),
new IImageLoader() {
public Image getImage(String name) {
return Activator.getImage(name);
}
});
IOUtils.closeQuietly(stream);