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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Please Help with quick java code and annotation for Windchill

sdakkach
1-Visitor

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

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

LoriSood
22-Sapphire III
(To:sdakkach)

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?

Announcements


Top Tags