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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Deprecated class wt.prefs.WTPreferences

m_walendziuk
13-Aquamarine

Deprecated class wt.prefs.WTPreferences

Hello.

 

I found that class

wt.prefs.WTPreferences

has been marked as deprecated. Sadly, there's no accurate info about why it is deprecated. The class provides some methods for getting root preference, create/set context masks and so on.

WTPreferences prefs = (WTPreferences) WTPreferences.root();
prefs = (WTPreferences) prefs.node(prefNode);
prefs.setContextMask(PreferenceHelper.createContextMask());

Is anyone here who knows, what is the replacement for this class (or at least methods used there)?

1 REPLY 1

In case anyone will need that in the future: see this article: https://www.ptc.com/en/support/article/CS191023

 

Just go and use one of these

PreferenceHelper.service.getValue()

PreferenceHelper.service.getValue(String definitionName, String clientName)
Announcements

Top Tags