Changeset 603 for AE/installer2/src/net/oni2/aeinstaller/backend/depot
- Timestamp:
- Jan 10, 2013, 5:25:51 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/depot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/depot/DepotManager.java
r600 r603 87 87 88 88 // Get taxonomy vocabulary 89 listener.cacheUpdateProgress("Updating taxonomy vocabulary", 0, 100); 89 if (listener != null) 90 listener.cacheUpdateProgress("Updating taxonomy vocabulary", 0, 91 100); 90 92 page = 0; 91 93 do { … … 100 102 101 103 // Get taxonomy terms 102 listener.cacheUpdateProgress("Updating taxonomy terms", 0, 100); 104 if (listener != null) 105 listener.cacheUpdateProgress("Updating taxonomy terms", 0, 100); 103 106 page = 0; 104 107 do { … … 113 116 114 117 // Check nodes for new information 115 listener.cacheUpdateProgress("Checking for new/updated nodes", 1, 116 100); 118 if (listener != null) 119 listener.cacheUpdateProgress("Checking for new/updated nodes", 120 1, 100); 117 121 HashSet<Integer> nodesToUpdate = new HashSet<Integer>(); 118 122 page = 0; … … 142 146 143 147 // Check files for new stuff 144 listener.cacheUpdateProgress("Checking for new/updated files", 2, 145 100); 148 if (listener != null) 149 listener.cacheUpdateProgress("Checking for new/updated files", 150 2, 100); 146 151 HashSet<Integer> filesToUpdate = new HashSet<Integer>(); 147 152 page = 0; … … 168 173 // Update nodes with new information 169 174 for (int nid : nodesToUpdate) { 170 listener.cacheUpdateProgress("Updating nodes", step++, total); 175 if (listener != null) 176 listener.cacheUpdateProgress("Updating nodes", step++, 177 total); 171 178 172 179 ja = DrupalJSONQuery.getItem("node", nid, ""); … … 188 195 // Update new files 189 196 for (int fid : filesToUpdate) { 190 listener.cacheUpdateProgress("Updating files", step++, total); 197 if (listener != null) 198 listener.cacheUpdateProgress("Updating files", step++, 199 total); 191 200 192 201 ja = DrupalJSONQuery.getItem("file", fid, "&file_contents=0"); -
AE/installer2/src/net/oni2/aeinstaller/backend/depot/model/NodeMod.java
r600 r603 148 148 return Integer.parseInt(fields.get("package_number")); 149 149 } 150 151 /** 152 * @return Is this mod a tool? 153 */ 154 public boolean isTool() { 155 TaxonomyTerm tt = DepotManager.getInstance().getTaxonomyTerm( 156 DepotConfig.getTaxonomyName_ModType_Tool()); 157 return getTypes().contains(tt); 158 } 150 159 }
Note:
See TracChangeset
for help on using the changeset viewer.