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

Deprecated class wt.prefs.WTPreferences

Regular Member

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

Re: Deprecated class wt.prefs.WTPreferences

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