1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-30 13:13:58 +01:00

[Creator] Add "Open Workspace Folder" option.

This commit is contained in:
sk89q 2015-07-24 16:36:17 -07:00
parent 183fab764d
commit 2cb0638174
2 changed files with 4 additions and 0 deletions

View File

@ -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));

View File

@ -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();