Take a look at one of the other modules. I think we had this problem in the Sequence Diagram modules at one time.
Sorry I'm on holiday and can't check myself right now. Bob. On 30 January 2011 05:30, Linus Tolke Tigris <[email protected]> wrote: > Hello Mark! > > I have seen a similar problem before and I suspect you have encountered the > same. > > The Translator.localize finds the properties file using the ClassLoader of > the Translator class. ArgoPrint is a module that is loaded dynamically so > its jar file with the properties file is not on the class-path of the > ClassLoader for the Translator class. > > I thought this was solved by a few years ago when I implemented a function > that explicitly added the ClassLoader of each loaded jar file to the list of > places where the Translator class would search but I assume you have found a > loop hole. > > If this is the problem the quick fix is to explicitly add your argoprint jar > on the classpath when starting ArgoUML. > > For releases this problem is also very much hidden by the function that > includes all jar files in the class path when running the distributed > version. > > This is one of the weaknesses in our module loader and it is probably > connected to the problem in issue 791. > (http://argouml.tigris.org/issues/show_bug.cgi?id=791). We desperately need > someone that knows enough about class loaders in java to either solve this > or replace the module loader with something that works but I guess the > problem is not big enough. > > /Linus > > > 2011/1/30 Mark Fortner <[email protected]>: >> I've been working on some changes to the ArgoPrint module. The code uses >> the Translator.localize method to get String resources for buttons, labels >> and dialog titles. This works well when I run ArgoPrint in Eclipse, but >> fails when I JAR up the module. For example, the text of the dialog >> appears >> as "argoprint.dialog.title". I looked at the JAR file and the >> argoprint.properties file is in the org/argouml/i18n directory. I've >> verified that the properties file also contains the expected text. Is >> there >> something that I'm forgetting to do to make this work properly? I've >> looked >> through the wiki page, and I don't see where I'm going wrong. >> Any help would be appreciated. >> >> Cheers, >> Mark >> >> card.ly: >> > > ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2701522 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]]
