You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new synthesis option of type range option with only int values as their lower and upper bound, step size and initial value the slider and current option initially works as intended.
public static final SynthesisOption DESCRIPTION_LENGTH = SynthesisOption.createRangeOption("Description text length", 0, 500, 1, 20).setCategory(BUNDLE)
And only shows int values and also returns an int when the option value is read a synthesis as in
usedContext.getOptionValue(DESCRIPTION_LENGTH) as Integer
When Eclipse is closed with an option value such as '42' and re-opened the slider shows the current value as a float '42.0' and also returns that float when read from the context which may cause the synthesis to have unexpected behavior.
Solution: The int-only slider should persist its value as an int if it was an int and not restore it as a float.
The text was updated successfully, but these errors were encountered:
When creating a new synthesis option of type range option with only int values as their lower and upper bound, step size and initial value the slider and current option initially works as intended.
And only shows int values and also returns an int when the option value is read a synthesis as in
When Eclipse is closed with an option value such as '42' and re-opened the slider shows the current value as a float '42.0' and also returns that float when read from the context which may cause the synthesis to have unexpected behavior.
Solution: The int-only slider should persist its value as an int if it was an int and not restore it as a float.
The text was updated successfully, but these errors were encountered: