Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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)?
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)