Skip to content

Commit 77b4326

Browse files
minor refactor
1 parent 93f4978 commit 77b4326

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

enigma-swing/src/main/java/org/quiltmc/enigma/gui/panel/EditorPanel.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ private class TooltipManager {
297297
static final int MOUSE_STOPPED_MOVING_DELAY = 100;
298298

299299
// DIY tooltip because JToolTip can't be moved or resized
300-
private final EntryTooltip entryTooltip = new EntryTooltip(EditorPanel.this.gui);
300+
final EntryTooltip entryTooltip = new EntryTooltip(EditorPanel.this.gui);
301301

302-
private final WindowAdapter guiFocusListener = new WindowAdapter() {
302+
final WindowAdapter guiFocusListener = new WindowAdapter() {
303303
@Override
304304
public void windowLostFocus(WindowEvent e) {
305305
if (e.getOppositeWindow() != TooltipManager.this.entryTooltip) {
@@ -308,15 +308,12 @@ public void windowLostFocus(WindowEvent e) {
308308
}
309309
};
310310

311-
private final AWTEventListener globalKeyListener = e -> {
311+
final AWTEventListener globalKeyListener = e -> {
312312
if (e.getID() == KeyEvent.KEY_TYPED || e.getID() == KeyEvent.KEY_PRESSED) {
313313
this.reset();
314314
}
315315
};
316316

317-
@Nullable
318-
private Token lastMouseTargetToken;
319-
320317
// Avoid finding the mouse entry every mouse movement update.
321318
// This also reduces the chances of accidentally updating the tooltip with
322319
// a new entry's content as you move your mouse to the tooltip.
@@ -366,6 +363,9 @@ public void windowLostFocus(WindowEvent e) {
366363
e -> this.entryTooltip.close()
367364
);
368365

366+
@Nullable
367+
Token lastMouseTargetToken;
368+
369369
TooltipManager() {
370370
this.mouseStoppedMovingTimer.setRepeats(false);
371371
this.showTimer.setRepeats(false);

0 commit comments

Comments
 (0)