Ignore:
Timestamp:
Jan 23, 2013, 12:43:13 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.99c:

  • Download window: Show which file is currently being downloaded and if it is an automaticly resolved dependency
  • Added mandatory packages dialog
  • Added option to show automatic resolved dependencies after installation is done instead of interrupting installation process to ask whether to continue
  • ToolManager: version number + last change added
  • Correct output of download-size in mainwin after installation of mods done
Location:
AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager
Files:
2 edited

Legend:

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

    r641 r646  
    44import java.awt.event.ActionEvent;
    55import java.awt.event.KeyEvent;
     6import java.text.SimpleDateFormat;
     7import java.util.Date;
    68import java.util.ResourceBundle;
    79import java.util.TreeMap;
     
    5557        private JLabel lblPlatformVal;
    5658        private JLabel lblPackageNumberVal;
     59        private JLabel lblVersionNumberVal;
     60        private JLabel lblLastChangeVal;
    5761        private HTMLLinkLabel lblDescriptionVal;
    5862        private JLabel lblDownloadSizeVal;
     
    6266        private Icon icoInstall = null;
    6367        private Icon icoUninstall = null;
     68
     69        private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    6470
    6571        /**
     
    100106                icoUninstall = new ImageIcon(getClass().getResource(
    101107                                SwingJavaBuilder.getConfig().getResource("img.uninstall")));
    102                
     108
    103109                setLocationRelativeTo(null);
    104110        }
     
    127133                                        toDownload.add(theMod);
    128134
    129                                         Downloader dl = new Downloader(toDownload);
     135                                        Downloader dl = new Downloader(toDownload, null);
    130136                                        try {
    131137                                                dl.setVisible(true);
     
    152158                lblPlatformVal.setText("");
    153159                lblPackageNumberVal.setText("");
     160                lblVersionNumberVal.setText("");
     161                lblLastChangeVal.setText("");
    154162                lblDownloadSizeVal.setText("");
    155163                btnInstall.setEnabled(false);
     
    163171                        lblPlatformVal.setText(m.getPlatform().toString());
    164172                        lblPackageNumberVal.setText(m.getPackageNumberString());
     173                        lblVersionNumberVal.setText(m.getVersion());
     174                        if (m.getFile() != null)
     175                                lblLastChangeVal.setText(sdf.format(new Date(m.getFile()
     176                                                .getTimestamp() * 1000)));
    165177                        lblDownloadSizeVal.setText(SizeFormatter.format(m.getZipSize(), 3));
    166178                        btnInstall.setEnabled(true);
  • AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.yml

    r641 r646  
    2424            - JLabel(name=lblPackageNumber, text=lblPackageNumber.text)
    2525            - JLabel(name=lblPackageNumberVal)
     26            - JLabel(name=lblVersionNumber, text=lblVersionNumber.text)
     27            - JLabel(name=lblVersionNumberVal)
     28            - JLabel(name=lblLastChange, text=lblLastChange.text)
     29            - JLabel(name=lblLastChangeVal)
    2630            - JLabel(name=lblDescription, text=lblDescription.text)
    2731            - JScrollPane(name=scrollDescription, vScrollBar=always, hScrollBar=asNeeded):
     
    3640                 >lblPlatform      lblPlatformVal      [min]
    3741                 >lblPackageNumber lblPackageNumberVal [min]
     42                 >lblVersionNumber lblVersionNumberVal [min]
     43                 >lblLastChange    lblLastChangeVal    [min]
    3844                 >^lblDescription  scrollDescription   [grow]
    3945                 >lblDownloadSize  lblDownloadSizeVal  [min]
Note: See TracChangeset for help on using the changeset viewer.