Hi,

The XMLs needed on my project will be embedded on the plugin jar.
I was wondering how to load them, because ResourceLoader seems to have
only methods for loading icons, and my tests with ClassLoaders didn't
worked.

I tried with the System ClassLoader:
// file = /org/argouml/core/propertypanels/xml/UmlClass.xml
        URL url = ClassLoader.getSystemResource(file);

and with the ¿module classloader?
        ClassLoader loader = UIFactory.class.getClassLoader(); //
UIFactory is a class in my module
        URL url = loader.getResource(file);

On both cases url is null.

Any hint?

PS: Once this is resolved, should it be part of the module, or should
I add the solution to ResourceLoader and ResourceLoaderWrapper so
others can benefit?

-- 
Cheers,

Christian López Espínola <penyaskito>

Reply via email to