Open ctrueden opened 2 years ago
I tried moving the logic from SwingObjectWidget
here:
... into the ObjectWidget
interface like this:
@Override
public default boolean supports(final WidgetModel model) {
return InputWidget.super.supports(model) && ((model.getChoices() != null && model.getChoices().length > 0)
|| ((model.getObjectPool() != null) && (model.getObjectPool().size() > 0)));
}
... but I cannot call ObjectWidget.super.supports
in SwingObjectWidget
because there's a more specific override in AbstractInputWidget
.
@ctrueden What's the right way to put that logic in the hierarchy of abstract classes and interfaces?
See e.g. #72. The logic for whether to use
SwingObjectWidget
belongs in the abstract layer in scijava-common, so that other UI implementations benefit as well.