| 475 |
|
b.append(String.format("%s %s%n", p.getPackageNumberString(), |
| 476 |
|
p.getName())); |
| 477 |
|
b.append("[/code]"); |
| 478 |
< |
|
| 478 |
> |
|
| 479 |
|
StringSelection selection = new StringSelection(b.toString()); |
| 480 |
< |
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); |
| 481 |
< |
clipboard.setContents(selection, selection); |
| 480 |
> |
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); |
| 481 |
> |
clipboard.setContents(selection, selection); |
| 482 |
|
} |
| 483 |
|
|
| 484 |
|
@SuppressWarnings("unused") |
| 893 |
|
} |
| 894 |
|
|
| 895 |
|
private void oni(boolean windowed) { |
| 896 |
< |
try { |
| 897 |
< |
OniLauncher.launch(windowed); |
| 898 |
< |
} catch (FileNotFoundException e) { |
| 899 |
< |
JOptionPane.showMessageDialog(this, |
| 900 |
< |
bundle.getString("oniExeNotFound.text"), |
| 901 |
< |
bundle.getString("oniExeNotFound.title"), |
| 902 |
< |
JOptionPane.ERROR_MESSAGE); |
| 903 |
< |
e.printStackTrace(); |
| 904 |
< |
} catch (ERuntimeNotInstalledException e) { |
| 896 |
> |
if (!Paths.getEditionGDF().isDirectory()) { |
| 897 |
|
JOptionPane.showMessageDialog(this, |
| 898 |
< |
bundle.getString("wineNotFound.text"), |
| 899 |
< |
bundle.getString("wineNotFound.title"), |
| 900 |
< |
JOptionPane.ERROR_MESSAGE); |
| 901 |
< |
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 |
> |
} |
| 917 |
|
} |
| 918 |
|
} |
| 919 |
|
|