mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-29 17:46:14 +00:00
Sol cookie editor can be run standalone.
This commit is contained in:
@@ -145,7 +145,9 @@ import javax.swing.JOptionPane;
|
||||
import javax.swing.SwingWorker;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.UnsupportedLookAndFeelException;
|
||||
import javax.swing.WindowConstants;
|
||||
import javax.swing.filechooser.FileFilter;
|
||||
import jsyntaxpane.DefaultSyntaxKit;
|
||||
import org.pushingpixels.substance.api.SubstanceLookAndFeel;
|
||||
|
||||
/**
|
||||
@@ -3054,6 +3056,15 @@ public class Main {
|
||||
reloadLastSession();
|
||||
}
|
||||
});
|
||||
} else if (args.length == 1 && "-soleditor".equals(args[0])) {
|
||||
initGui();
|
||||
checkLibraryVersion();
|
||||
View.execInEventDispatch(() -> {
|
||||
DefaultSyntaxKit.initKit();
|
||||
SolEditorFrame solEditor = new SolEditorFrame();
|
||||
solEditor.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||
solEditor.setVisible(true);
|
||||
});
|
||||
} else {
|
||||
checkLibraryVersion();
|
||||
setSessionLoaded(true);
|
||||
|
||||
Reference in New Issue
Block a user