Changeset 1032 for java/installer2/src/net/oni2/aeinstaller/gui
- Timestamp:
- Mar 15, 2016, 4:47:02 PM (9 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r1023 r1032 196 196 cmbModTypes.removeAllItems(); 197 197 198 TreeMap<String, Type> types = new TreeMap<String,Type>();199 for ( Type t : PackageManager.getInstance().getTypesWithContent()) {198 TreeMap<String, net.oni2.aeinstaller.backend.packages.Type> types = new TreeMap<String, net.oni2.aeinstaller.backend.packages.Type>(); 199 for (net.oni2.aeinstaller.backend.packages.Type t : PackageManager.getInstance().getTypesWithContent()) { 200 200 types.put(t.getName(), t); 201 201 } 202 202 cmbModTypes.addItem("-All-"); 203 for ( Type t : types.values()) {203 for (net.oni2.aeinstaller.backend.packages.Type t : types.values()) { 204 204 cmbModTypes.addItem(t); 205 205 } … … 940 940 private void updateTableFilter() { 941 941 Object o = cmbModTypes.getSelectedItem(); 942 Type t = null;943 if (o instanceof Type)944 t = ( Type) o;942 net.oni2.aeinstaller.backend.packages.Type t = null; 943 if (o instanceof net.oni2.aeinstaller.backend.packages.Type) 944 t = (net.oni2.aeinstaller.backend.packages.Type) o; 945 945 int downloadState = 0; 946 946 if (radOnline.isSelected()) -
java/installer2/src/net/oni2/aeinstaller/gui/reporter/ReporterDialog.java
r1011 r1032 217 217 Pattern packagePattern = Pattern.compile( 218 218 ".*/packages/[0-9]{5}[^/]*/.+", Pattern.CASE_INSENSITIVE); 219 Pattern jrePattern = Pattern.compile( 220 ".*/JRE/.+", Pattern.CASE_INSENSITIVE); 219 221 for (File flF : FileUtils.listFilesAndDirs( 220 222 Paths.getEditionBasePath(), TrueFileFilter.INSTANCE, … … 222 224 String name = flF.getAbsolutePath().substring(baseLength); 223 225 name = name.replace('\\', '/'); 224 if (!packagePattern.matcher(name).matches() ) {226 if (!packagePattern.matcher(name).matches() && !jrePattern.matcher(name).matches()) { 225 227 if (flF.isFile()) 226 228 fileList.append(name + "\t" + flF.length() + "\n");
Note:
See TracChangeset
for help on using the changeset viewer.