Skip to content

Commit fde1871

Browse files
committed
Make input widgets call the right supports method
We want them to call InputWidget.supports(WidgetModel), not AbstractTypedPlugin.supports(WidgetModel). Hooray for multiple inheritance! Closes #283.
1 parent 133142a commit fde1871

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/scijava/widget/AbstractInputWidget.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,11 @@ public void set(final WidgetModel model) {
6767
public WidgetModel get() {
6868
return widgetModel;
6969
}
70+
71+
// -- Typed methods --
72+
73+
@Override
74+
public boolean supports(final WidgetModel data) {
75+
return InputWidget.super.supports(data);
76+
}
7077
}

0 commit comments

Comments
 (0)