Changeset 852 for java/installer2/src/net/oni2/aeinstaller/gui
- Timestamp:
- May 3, 2013, 2:25:21 PM (12 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r840 r852 50 50 import net.oni2.aeinstaller.backend.ImageResizer; 51 51 import net.oni2.aeinstaller.backend.Paths; 52 import net.oni2.aeinstaller.backend.RuntimeOptions; 52 53 import net.oni2.aeinstaller.backend.SizeFormatter; 53 54 import net.oni2.aeinstaller.backend.oni.OniLauncher; … … 217 218 DepotManager.loadFromCacheFile(Paths.getDepotCacheFilename()); 218 219 219 if (! SettingsManager.getInstance().isOfflineMode()220 && ! SettingsManager.getInstance().isNoCacheUpdateMode()) {220 if (!RuntimeOptions.isOfflineMode() 221 && !RuntimeOptions.isNoCacheUpdateMode()) { 221 222 long start = new Date().getTime(); 222 223 … … 240 241 if ((evtSource != this) 241 242 || SettingsManager.getInstance().get("notifyupdates", true)) { 242 if ( SettingsManager.getInstance().isOfflineMode()) {243 if (RuntimeOptions.isOfflineMode()) { 243 244 if (evtSource != this) { 244 245 JOptionPane.showMessageDialog( … … 584 585 @SuppressWarnings("unused") 585 586 private void checkCorePackages() { 586 if (! SettingsManager.getInstance().isOfflineMode()) {587 if (!RuntimeOptions.isOfflineMode()) { 587 588 TreeSet<Package> tools = new TreeSet<Package>(); 588 589 for (Package m : PackageManager.getInstance().getCoreTools()) { … … 649 650 } 650 651 651 if (toDownload.size() > 0 652 && SettingsManager.getInstance().isOfflineMode()) { 652 if (toDownload.size() > 0 && RuntimeOptions.isOfflineMode()) { 653 653 installState = EInstallState.OFFLINE; 654 654 break; -
java/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.java
r840 r852 14 14 import javax.swing.UIManager; 15 15 16 import net.oni2.ProxySettings; 16 17 import net.oni2.SettingsManager; 18 import net.oni2.aeinstaller.backend.Paths; 17 19 import net.oni2.resourcebundle.UTF8ResourceBundleLoader; 18 20 … … 100 102 JOptionPane.INFORMATION_MESSAGE); 101 103 } 104 105 ProxySettings prox = ProxySettings.getInstance(); 106 prox.serializeToFile(Paths.getProxySettingsFilename()); 102 107 103 108 return true; -
java/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.java
r840 r852 18 18 19 19 import net.oni2.SettingsManager; 20 import net.oni2.aeinstaller.backend.RuntimeOptions; 20 21 import net.oni2.aeinstaller.backend.oni.management.tools.ToolsManager; 21 22 import net.oni2.aeinstaller.backend.packages.Package; … … 103 104 } else { 104 105 if (!selectedPackage.isLocalAvailable()) { 105 if ( SettingsManager.getInstance().isOfflineMode()) {106 if (RuntimeOptions.isOfflineMode()) { 106 107 JOptionPane.showMessageDialog(this, 107 108 bundle.getString("offlineMode.text"),
Note:
See TracChangeset
for help on using the changeset viewer.