Skip to content

Commit

Permalink
Remove test exception
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Dec 7, 2024
1 parent c60e340 commit 24c1ac9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,6 @@ public void init(Theme theme) {
EOCVSimIconLibrary.INSTANCE.getIcoEOCVSim16().getImage()
));

if(true) {
throw new RuntimeException("This code is not supposed to be executed");
}

frame.setLocationRelativeTo(null);
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ package com.github.serivesmejia.eocvsim.gui.dialog

import com.formdev.flatlaf.intellijthemes.FlatArcDarkIJTheme
import com.github.serivesmejia.eocvsim.gui.EOCVSimIconLibrary
import com.github.serivesmejia.eocvsim.gui.dialog.component.BottomButtonsPanel
import com.github.serivesmejia.eocvsim.gui.dialog.component.OutputPanel
import com.github.serivesmejia.eocvsim.gui.dialog.component.OutputPanel.DefaultBottomButtonsPanel
import java.awt.Dimension
import java.awt.FlowLayout
import java.awt.Font
import javax.swing.Box
import javax.swing.BoxLayout
import javax.swing.JDialog
import javax.swing.JFrame
Expand All @@ -30,8 +27,6 @@ class CrashReportOutput(
}

init {
FlatArcDarkIJTheme.setup()

output.isModal = true
output.title = "Crash Report"
output.layout = BoxLayout(output.contentPane, BoxLayout.Y_AXIS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.github.serivesmejia.eocvsim.util.SysUtil
import kotlinx.coroutines.Runnable
import picocli.CommandLine
import java.io.File
import javax.swing.SwingUtilities

object CrashReportOutputMain {
@CommandLine.Command(name = "report", mixinStandardHelpOptions = true, version = [Build.versionString])
Expand All @@ -15,6 +16,7 @@ object CrashReportOutputMain {
@JvmField var crashReportPath: String? = null

override fun run() {
SwingUtilities.invokeLater(FlatArcDarkIJTheme::setup)
DialogFactory.createCrashReport(null, SysUtil.loadFileStr(File(crashReportPath ?: "")))
}
}
Expand Down

0 comments on commit 24c1ac9

Please sign in to comment.