Skip to main content
1-Visitor
May 22, 2015 6:19 PM UTC
Question

Please Help with quick java code and annotation for Windchill

What can the following code be used to do?


public class trainingResource extends WTListResourceBundle{
    @RBEntry("hello, {0}!!!")
    @RBComment("Bundle \"hello world\" example")
    @RBArgComment0("a noun")
    public static final  String HELLO="0";
}

can it Define a new localized value or is it missing the @RBUUID annotation on the class?

2 replies

16-Pearl
Jun 1, 2015 5:57 PM UTC

Hi Serge,

Yes, you need to have the @RBUUID Annotation, the same value can be used in your action model files to refer to the resource files. For most of the OOTB resource file, you can find the source files in the Windchill installation directory.

e.g. <WT_HOME>\src\com\ptc\core\ui\navigationRB.java

Regards,

Bhushan

Translate
23-Emerald II
Jun 5, 2015 11:41 PM UTC

Serge, did Bushan's explanation answer your question? If so, could you please mark the thread as answered so that others may easily know that the thread has a solution?

Translate