<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hello Enrico,<br> <br> have you checked the following: <a class="moz-txt-link-freetext" href="http://argouml-cpp.tigris.org/source/browse/argouml-cpp/trunk/src/org/argouml/language/cpp/profile/FigNodeStrategyCpp.java?revision=210&view=markup">http://argouml-cpp.tigris.org/source/browse/argouml-cpp/trunk/src/org/argouml/language/cpp/profile/FigNodeStrategyCpp.java?revision=210&view=markup</a><br> <br> The following code is loading the Icon (yes, from the <code>org.argouml.Images</code> package, but, I don't think that this is hard-coded as the i18n property files are):<br> <pre><pre><span class="vcmarkup-comment"> /** * @param name of the icon file without path and without extension - * will be loaded from "org/argouml/Images/&lt;name&gt;.gif". * @return the ImageIcon with the icon of null if a file with the given * name isn't found. */</span> <span class="vcmarkup-keyword">private</span> ImageIcon loadIcon(String name) { URL imagePath = NormalProfileCpp.<span class="vcmarkup-keyword">class</span>.getClassLoader() .getResource(<span class="vcmarkup-string">"org/argouml/Images/"</span> + name + <span class="vcmarkup-string">".gif"</span>); ImageIcon icon = <span class="vcmarkup-keyword">null</span>; <span class="vcmarkup-keyword">if</span> (imagePath != <span class="vcmarkup-keyword">null</span>) icon = <span class="vcmarkup-keyword">new</span> ImageIcon(imagePath); <span class="vcmarkup-keyword">return</span> icon; } </pre></pre> Sorry for only now replying.<br> <br> Regards,<br> <br> Luis<br> <br> Enrico Da Ros wrote: <blockquote cite="mid:18647530.8956.1256887866867.javamail.ht...@localhost" type="cite"> <pre wrap="">Thanks for the answer! Well, about the first problem relies on the fact that i were trying to emulate the way it's done inside ResourceLoaderWrapper, i solved contextually to the issues <a class="moz-txt-link-freetext" href="http://argouml.tigris.org/issues/show_bug.cgi?id=5880">http://argouml.tigris.org/issues/show_bug.cgi?id=5880</a> and <a class="moz-txt-link-freetext" href="http://argouml.tigris.org/issues/show_bug.cgi?id=5879">http://argouml.tigris.org/issues/show_bug.cgi?id=5879</a>
Anyway i still don't get why it doesn't load the new directory.. but i'll debug asap to understand what i did wrong! For the localization, i liked it after a small thinking, at least you have not to become mad finding where are the files, lost inside the packages! Enrico ------------------------------------------------------ <a class="moz-txt-link-freetext" href="http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2412945">http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2412945</a> To unsubscribe from this discussion, e-mail: [<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>]. To be allowed to post to the list contact the mailing list moderator, email: [<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>] </pre> </blockquote> <br> </body> </html> ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2413960 To unsubscribe from this discussion, e-mail: [[email protected]]. To be allowed to post to the list contact the mailing list moderator, email: [[email protected]]
