mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-28 12:57:07 +01:00
[Creator] Add "Open Workspace Folder" option.
This commit is contained in:
parent
183fab764d
commit
2cb0638174
@ -564,6 +564,8 @@ public class PackManagerController {
|
|||||||
|
|
||||||
frame.getOpenOutputFolderMenuItem().addActionListener(e -> SwingHelper.browseDir(distDir, frame));
|
frame.getOpenOutputFolderMenuItem().addActionListener(e -> SwingHelper.browseDir(distDir, frame));
|
||||||
|
|
||||||
|
frame.getOpenWorkspaceFolderMenuItem().addActionListener(e1 -> SwingHelper.browseDir(workspaceDir, frame));
|
||||||
|
|
||||||
frame.getOpenLauncherFolderMenuItem().addActionListener(e1 -> SwingHelper.browseDir(launcherDir, frame));
|
frame.getOpenLauncherFolderMenuItem().addActionListener(e1 -> SwingHelper.browseDir(launcherDir, frame));
|
||||||
|
|
||||||
frame.getOpenWebRootMenuItem().addActionListener(e1 -> SwingHelper.browseDir(webRoot, frame));
|
frame.getOpenWebRootMenuItem().addActionListener(e1 -> SwingHelper.browseDir(webRoot, frame));
|
||||||
|
@ -47,6 +47,7 @@ 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 openWorkspaceFolderMenuItem = new JMenuItem("Open Workspace Folder");
|
||||||
@Getter private final JMenuItem openLauncherFolderMenuItem = new JMenuItem("Open Test Launcher 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 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");
|
||||||
@ -167,6 +168,7 @@ 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(openWorkspaceFolderMenuItem);
|
||||||
menu.add(openLauncherFolderMenuItem);
|
menu.add(openLauncherFolderMenuItem);
|
||||||
menu.add(openWebRootMenuItem);
|
menu.add(openWebRootMenuItem);
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
Loading…
Reference in New Issue
Block a user