Ignore:
Timestamp:
Mar 21, 2013, 12:33:53 PM (12 years ago)
Author:
alloc
Message:

AEI2: Looooots of refactorings for breaking out independent features into libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.java

    r708 r720  
    1717import javax.swing.KeyStroke;
    1818
     19import net.oni2.SettingsManager;
    1920import net.oni2.aeinstaller.backend.oni.Installer;
    2021import net.oni2.aeinstaller.backend.packages.Package;
     
    2425import net.oni2.aeinstaller.gui.modtable.ModTable.ETableContentType;
    2526import net.oni2.aeinstaller.gui.packageinfobox.PackageInfoBox;
    26 import net.oni2.settingsmanager.Settings;
    2727
    2828import org.javabuilders.BuildResult;
     
    7373                getRootPane().getActionMap().put("close", closeAction);
    7474
    75                 contents.setDividerLocation(Settings.getInstance().get("win_tools_divloc", 550));
     75                contents.setDividerLocation(SettingsManager.getInstance().get("win_tools_divloc", 550));
    7676                contents.setResizeWeight(0.4);
    7777
     
    8787                                SwingJavaBuilder.getConfig().getResource("img.uninstall")));
    8888
    89                 setSize(Settings.getInstance().get("win_tools_width", 950), Settings.getInstance().get("win_tools_height", 600));
     89                setSize(SettingsManager.getInstance().get("win_tools_width", 950), SettingsManager.getInstance().get("win_tools_height", 600));
    9090                setLocationRelativeTo(null);
    9191        }
     
    100100                        } else {
    101101                                if (!selectedPackage.isLocalAvailable()) {
    102                                         if (Settings.getInstance().isOfflineMode()) {
     102                                        if (SettingsManager.getInstance().isOfflineMode()) {
    103103                                                JOptionPane.showMessageDialog(this,
    104104                                                                bundle.getString("offlineMode.text"),
     
    152152        @SuppressWarnings("unused")
    153153        private void closing() {
    154                 Settings.getInstance().put("win_tools_divloc", contents.getDividerLocation());
    155                 Settings.getInstance().put("win_tools_width", getWidth());
    156                 Settings.getInstance().put("win_tools_height", getHeight());
     154                SettingsManager.getInstance().put("win_tools_divloc", contents.getDividerLocation());
     155                SettingsManager.getInstance().put("win_tools_width", getWidth());
     156                SettingsManager.getInstance().put("win_tools_height", getHeight());
    157157        }
    158158}
Note: See TracChangeset for help on using the changeset viewer.