Skip to content

Commit

Permalink
refactor: Making DebugMode to an utility class (#2162)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgcr authored Nov 2, 2024
1 parent f579c45 commit 5a576ff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/core/gui/DebugMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

import core.db.frontend.SQLDialog;
import core.net.MyConnector;

import javax.swing.*;
import java.awt.event.ItemEvent;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JMenu;
import javax.swing.JMenuItem;

public class DebugMode {

private DebugMode() {
throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
}

public static JMenu getDeveloperMenu() {
JMenu menu = new JMenu("Debug");
menu.add(getSQLDialogMenuItem());
Expand Down

0 comments on commit 5a576ff

Please sign in to comment.