mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-30 13:13:58 +01:00
[Creator] Add menu options to open the test data folders.
This commit is contained in:
parent
4a35f5f5b6
commit
2157a5c77c
@ -67,6 +67,7 @@ public class PackManagerController {
|
|||||||
@Getter private final File workspaceFile;
|
@Getter private final File workspaceFile;
|
||||||
@Getter private final File dataDir;
|
@Getter private final File dataDir;
|
||||||
@Getter private final File distDir;
|
@Getter private final File distDir;
|
||||||
|
@Getter private final File launcherDir;
|
||||||
@Getter private File webRoot;
|
@Getter private File webRoot;
|
||||||
@Getter private Workspace workspace;
|
@Getter private Workspace workspace;
|
||||||
@Getter private final Launcher launcher;
|
@Getter private final Launcher launcher;
|
||||||
@ -85,7 +86,7 @@ public class PackManagerController {
|
|||||||
workspaceFile = Workspace.getWorkspaceFile(workspaceDir);
|
workspaceFile = Workspace.getWorkspaceFile(workspaceDir);
|
||||||
|
|
||||||
this.distDir = new File(workspaceDir, "_upload");
|
this.distDir = new File(workspaceDir, "_upload");
|
||||||
File launcherDir = new File(dataDir, "staging/launcher");
|
launcherDir = new File(dataDir, "staging/launcher");
|
||||||
File launcherConfigDir = new File(creator.getDataDir(), "launcher");
|
File launcherConfigDir = new File(creator.getDataDir(), "launcher");
|
||||||
this.webRoot = new File(dataDir, "staging/www");
|
this.webRoot = new File(dataDir, "staging/www");
|
||||||
|
|
||||||
@ -563,6 +564,10 @@ public class PackManagerController {
|
|||||||
|
|
||||||
frame.getOpenOutputFolderMenuItem().addActionListener(e -> SwingHelper.browseDir(distDir, frame));
|
frame.getOpenOutputFolderMenuItem().addActionListener(e -> SwingHelper.browseDir(distDir, frame));
|
||||||
|
|
||||||
|
frame.getOpenLauncherFolderMenuItem().addActionListener(e1 -> SwingHelper.browseDir(launcherDir, frame));
|
||||||
|
|
||||||
|
frame.getOpenWebRootMenuItem().addActionListener(e1 -> SwingHelper.browseDir(webRoot, frame));
|
||||||
|
|
||||||
frame.getOpenConsoleMenuItem().addActionListener(e -> {
|
frame.getOpenConsoleMenuItem().addActionListener(e -> {
|
||||||
ConsoleFrame.showMessages();
|
ConsoleFrame.showMessages();
|
||||||
});
|
});
|
||||||
|
@ -47,6 +47,8 @@ public class PackManagerFrame extends JFrame {
|
|||||||
@Getter private final JMenuItem deployServerMenuItem = new JMenuItem("Deploy Server...");
|
@Getter private final JMenuItem deployServerMenuItem = new JMenuItem("Deploy Server...");
|
||||||
@Getter private final JMenuItem generatePackagesMenuItem = new JMenuItem("Generate packages.json...");
|
@Getter private final JMenuItem generatePackagesMenuItem = new JMenuItem("Generate packages.json...");
|
||||||
@Getter private final JMenuItem openOutputFolderMenuItem = new JMenuItem("Open Upload Folder");
|
@Getter private final JMenuItem openOutputFolderMenuItem = new JMenuItem("Open Upload Folder");
|
||||||
|
@Getter private final JMenuItem openLauncherFolderMenuItem = new JMenuItem("Open Test Launcher Folder");
|
||||||
|
@Getter private final JMenuItem openWebRootMenuItem = new JMenuItem("Open Test Web Server Folder");
|
||||||
@Getter private final JMenuItem openConsoleMenuItem = new JMenuItem("Open Console");
|
@Getter private final JMenuItem openConsoleMenuItem = new JMenuItem("Open Console");
|
||||||
@Getter private final JMenuItem docsMenuItem = new JMenuItem("Documentation");
|
@Getter private final JMenuItem docsMenuItem = new JMenuItem("Documentation");
|
||||||
@Getter private final JMenuItem aboutMenuItem = new JMenuItem("About");
|
@Getter private final JMenuItem aboutMenuItem = new JMenuItem("About");
|
||||||
@ -165,6 +167,9 @@ public class PackManagerFrame extends JFrame {
|
|||||||
menu = new JMenu("Tools");
|
menu = new JMenu("Tools");
|
||||||
menu.setMnemonic('t');
|
menu.setMnemonic('t');
|
||||||
menuBar.add(menu);
|
menuBar.add(menu);
|
||||||
|
menu.add(openLauncherFolderMenuItem);
|
||||||
|
menu.add(openWebRootMenuItem);
|
||||||
|
menu.addSeparator();
|
||||||
menu.add(openConsoleMenuItem);
|
menu.add(openConsoleMenuItem);
|
||||||
|
|
||||||
menu = new JMenu("Help");
|
menu = new JMenu("Help");
|
||||||
|
Loading…
Reference in New Issue
Block a user