| 3 |
|
import java.io.File; |
| 4 |
|
import java.io.FileNotFoundException; |
| 5 |
|
import java.io.PrintStream; |
| 6 |
+ |
import java.util.ResourceBundle; |
| 7 |
|
|
| 8 |
|
import javax.swing.JFrame; |
| 9 |
+ |
import javax.swing.JOptionPane; |
| 10 |
|
import javax.swing.JToolBar; |
| 11 |
|
import javax.swing.SwingUtilities; |
| 12 |
|
import javax.swing.UIManager; |
| 53 |
|
DepotManager.getInstance().loadFromFile( |
| 54 |
|
new File(Settings.getDepotCacheFilename())); |
| 55 |
|
|
| 56 |
< |
SwingJavaBuilder.getConfig().addResourceBundle("Images"); |
| 56 |
> |
ResourceBundle imagesBundle = ResourceBundle |
| 57 |
> |
.getBundle(AEInstaller2.class.getPackage().getName() |
| 58 |
> |
+ ".Images"); |
| 59 |
> |
ResourceBundle basicBundle = ResourceBundle |
| 60 |
> |
.getBundle(AEInstaller2.class.getPackage().getName() |
| 61 |
> |
+ ".AEInstaller"); |
| 62 |
> |
|
| 63 |
> |
SwingJavaBuilder.getConfig().addResourceBundle(imagesBundle); |
| 64 |
> |
SwingJavaBuilder.getConfig().addResourceBundle(basicBundle); |
| 65 |
|
SwingJavaBuilder.getConfig().setMarkInvalidResourceBundleKeys(true); |
| 66 |
|
SwingJavaBuilder.getConfig().addType("JToolBarSeparator", |
| 67 |
|
JToolBar.Separator.class); |
| 100 |
|
System.out.println("ValidPath: " |
| 101 |
|
+ StuffToRefactorLater.verifyRunningDirectory()); |
| 102 |
|
|
| 103 |
+ |
if (!StuffToRefactorLater.verifyRunningDirectory()) { |
| 104 |
+ |
JOptionPane.showMessageDialog(null, |
| 105 |
+ |
basicBundle.getString("invalidPath.text"), |
| 106 |
+ |
basicBundle.getString("invalidPath.title"), |
| 107 |
+ |
JOptionPane.ERROR_MESSAGE); |
| 108 |
+ |
if (!Settings.getDebug()) { |
| 109 |
+ |
return; |
| 110 |
+ |
} |
| 111 |
+ |
} |
| 112 |
+ |
|
| 113 |
|
SwingUtilities.invokeLater(new Runnable() { |
| 114 |
|
|
| 115 |
|
public void run() { |