Changeset 1018
- Timestamp:
- Mar 28, 2015, 7:11:52 PM (10 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r1016 r1018 1 1 appname=AE Installer 2 2 appversion=. 192 appversion=.20 -
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r892 r1018 375 375 private void doUpdate() { 376 376 if (execUpdates != null && execUpdates.size() > 0) { 377 Downloader dl = new Downloader(execUpdates, null, false );377 Downloader dl = new Downloader(execUpdates, null, false, this); 378 378 try { 379 379 dl.setVisible(true); … … 699 699 } 700 700 if (execCoreUpdates.size() > 0) { 701 Downloader dl = new Downloader(execCoreUpdates, null, true );701 Downloader dl = new Downloader(execCoreUpdates, null, true, this); 702 702 try { 703 703 dl.setVisible(true); … … 755 755 756 756 if (toDownload.size() > 0) { 757 Downloader dl = new Downloader(toDownload, installDeps, false );757 Downloader dl = new Downloader(toDownload, installDeps, false, this); 758 758 try { 759 759 dl.setVisible(true); -
java/installer2/src/net/oni2/aeinstaller/gui/downloadwindow/Downloader.java
r924 r1018 1 1 package net.oni2.aeinstaller.gui.downloadwindow; 2 2 3 import java.awt.Component; 3 4 import java.util.ResourceBundle; 4 5 import java.util.TreeSet; … … 53 54 * @param isCoreDownload 54 55 * Downloading core packages - can not be aborted 56 * @param parent 57 * Reference to parent window for centering 55 58 */ 56 59 public Downloader(TreeSet<Package> mods, TreeSet<Package> dependencies, 57 boolean isCoreDownload ) {60 boolean isCoreDownload, Component parent) { 58 61 super(); 59 62 … … 65 68 setResizable(false); 66 69 setSize(600, (int) getSize().getHeight()); 70 setLocationRelativeTo(parent); 67 71 68 72 if (dependencies != null) -
java/installer2/src/net/oni2/aeinstaller/gui/modtable/ModTable.java
r863 r1018 1 1 package net.oni2.aeinstaller.gui.modtable; 2 2 3 import java.awt.Component; 3 4 import java.awt.Desktop; 4 5 import java.awt.Rectangle; … … 88 89 setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 89 90 getSelectionModel().addListSelectionListener(this); 90 addMouseListener(new MouseEventHandler( ));91 addMouseListener(new MouseEventHandler(this)); 91 92 addKeyListener(new KeyEventHandler()); 92 93 // To get checkbox-cells with background of row … … 289 290 290 291 private class MouseEventHandler extends MouseAdapter { 292 private final Component parent; 293 294 public MouseEventHandler(Component parent) { 295 this.parent = parent; 296 } 297 291 298 private void mouseEventProcessing(MouseEvent e) { 292 299 int r = rowAtPoint(e.getPoint()); … … 349 356 toDo.add(mod); 350 357 Downloader dl = new Downloader(toDo, deps, 351 false );358 false, parent); 352 359 try { 353 360 dl.setVisible(true); -
java/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.java
r852 r1018 115 115 toDownload.add(selectedPackage); 116 116 117 Downloader dl = new Downloader(toDownload, null, false );117 Downloader dl = new Downloader(toDownload, null, false, this); 118 118 try { 119 119 dl.setVisible(true);
Note:
See TracChangeset
for help on using the changeset viewer.