public static Preference createSingleTextPreference ( String name , String label ) { return createSingleTextPreference ( name , "attribute.displayName." + name , TextDisplay . TEXT , null ) ; }
Define a single - valued text input preferences . This method is a convenient wrapper for the most common expected use case and assumes null values for the default value and a predictable label .