Skip to content

Commit 0bd3c6a

Browse files
committed
OptionsLookAndFeel: deprecate undesired methods
It does not really make sense to let the caller populate the UI which will be handled. (Actually, it does not make sense to handle only a single UI at all; see subsequent commits.)
1 parent ac992d0 commit 0bd3c6a

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/main/java/org/scijava/ui/swing/options/OptionsLookAndFeel.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,10 @@ public class OptionsLookAndFeel extends OptionsPlugin {
7878

7979
// -- OptionsLookAndFeel methods --
8080

81-
public UserInterface getUI() {
82-
return ui;
83-
}
84-
8581
public String getLookAndFeel() {
8682
return lookAndFeel;
8783
}
8884

89-
public void setUI(final UserInterface ui) {
90-
this.ui = ui;
91-
}
92-
9385
public void setLookAndFeel(final String lookAndFeel) {
9486
this.lookAndFeel = lookAndFeel;
9587
}
@@ -155,4 +147,15 @@ protected void initLookAndFeel() {
155147
lookAndFeelItem.setChoices(lookAndFeelChoices);
156148
}
157149

150+
// -- Deprecated methods --
151+
152+
@Deprecated
153+
public UserInterface getUI() {
154+
return ui;
155+
}
156+
157+
@Deprecated
158+
public void setUI(final UserInterface ui) {
159+
this.ui = ui;
160+
}
158161
}

0 commit comments

Comments
 (0)