mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 02:51:20 -08:00
Eclipse formatting (#176)
* Make eclipse formatter better follow our conventions and format all of it * Don't join wrapped lines to allow for hand-formatting * Fix formatting of switch statements and add breaks in enum declarations * Use new formatter by @thebutlah, adjust formatter more
This commit is contained in:
1 parent
c74cc539c9
commit
1dea626422
114 files changed
+5580
-2661
No files matched your search
@@ -4,11 +4,17 @@ import javax.swing.*;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
|
||||
public class ButtonTimer {
|
||||
|
||||
private static final Timer timer = new Timer();
|
||||
|
||||
public static void runTimer(AbstractButton button, int seconds, String defaultText, Runnable runnable) {
|
||||
public static void runTimer(
|
||||
AbstractButton button,
|
||||
int seconds,
|
||||
String defaultText,
|
||||
Runnable runnable
|
||||
) {
|
||||
if (seconds <= 0) {
|
||||
button.setText(defaultText);
|
||||
runnable.run();
|
||||
@@ -25,7 +31,12 @@ public class ButtonTimer {
|
||||
private final String defaultText;
|
||||
private final Runnable runnable;
|
||||
|
||||
private ButtonTimerTask(AbstractButton button, int seconds, String defaultText, Runnable runnable) {
|
||||
private ButtonTimerTask(
|
||||
AbstractButton button,
|
||||
int seconds,
|
||||
String defaultText,
|
||||
Runnable runnable
|
||||
) {
|
||||
this.button = button;
|
||||
this.seconds = seconds;
|
||||
this.defaultText = defaultText;
|
||||
|
||||
Reference in new issue
Block a user