Skip to main content
1-Visitor
May 22, 2015
Question

Please Help with quick java code and annotation for Windchill

  • May 22, 2015
  • 2 replies
  • 1302 views

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
June 1, 2015

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

23-Emerald I
June 5, 2015

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?