Skip to content

"stepSize" attribute is ignored in slider input dialogs using script editor #205

@lnyng

Description

@lnyng

In imagej/imagej-ui-swing#64

@imagejan mentioned that stepSize attribute is ignored, for example, when calling:

// @int(label="test", min="0", max="100", stepSize="10", style="slider") a
print(a)

Notice that there is another bug here, which is that min/max must be specified or it will hang the program.

After some investigation, it seems that this is due to some known bug as there is a "FIX ME" in the code.

I think the reason to this bug is that there is no converter that converts String to Number in Scijava right now. We could create such converter. But I don't understand why we want to use Number as the type for stepSize. If the input is an int, then max/min/stepSize should all be int, right? Same should apply to double long etc. Then we can just use item.getType as the type to parse the stepSize String given. @ctrueden

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions