cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Please Help with quick java code and annotation for Windchill

Newbie

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 2

Re: Please Help with quick java code and annotation for Windchill

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

Re: Please Help with quick java code and annotation for Windchill

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?