Changeset 810 for java/installer2/src/net/oni2/aeinstaller/gui
- Timestamp:
- Apr 12, 2013, 8:05:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r809 r810 476 476 p.getName())); 477 477 b.append("[/code]"); 478 478 479 479 StringSelection selection = new StringSelection(b.toString()); 480 481 480 Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); 481 clipboard.setContents(selection, selection); 482 482 } 483 483 … … 894 894 895 895 private void oni(boolean windowed) { 896 try { 897 OniLauncher.launch(windowed); 898 } catch (FileNotFoundException e) { 896 if (!Paths.getEditionGDF().isDirectory()) { 899 897 JOptionPane.showMessageDialog(this, 900 bundle.getString("oniExeNotFound.text"), 901 bundle.getString("oniExeNotFound.title"), 902 JOptionPane.ERROR_MESSAGE); 903 e.printStackTrace(); 904 } catch (ERuntimeNotInstalledException e) { 905 JOptionPane.showMessageDialog(this, 906 bundle.getString("wineNotFound.text"), 907 bundle.getString("wineNotFound.title"), 908 JOptionPane.ERROR_MESSAGE); 909 e.printStackTrace(); 898 bundle.getString("notInstalled.text"), 899 bundle.getString("notInstalled.title"), 900 JOptionPane.WARNING_MESSAGE); 901 } else { 902 try { 903 OniLauncher.launch(windowed); 904 } catch (FileNotFoundException e) { 905 JOptionPane.showMessageDialog(this, 906 bundle.getString("oniExeNotFound.text"), 907 bundle.getString("oniExeNotFound.title"), 908 JOptionPane.ERROR_MESSAGE); 909 e.printStackTrace(); 910 } catch (ERuntimeNotInstalledException e) { 911 JOptionPane.showMessageDialog(this, 912 bundle.getString("wineNotFound.text"), 913 bundle.getString("wineNotFound.title"), 914 JOptionPane.ERROR_MESSAGE); 915 e.printStackTrace(); 916 } 910 917 } 911 918 }
Note:
See TracChangeset
for help on using the changeset viewer.