16 package net.squiz.matrix.ui;
18 import net.squiz.matrix.matrixtree.MatrixTreeNode;
19 import net.squiz.matrix.core.*;
20 import net.squiz.matrix.debug.*;
22 import java.io.IOException;
41 private String[] assetids;
43 private boolean throwVisibleError =
false;
50 assetids = AssetManager.getAllRefreshableAssetids();
51 this.throwVisibleError = throwVisibleError;
60 this.assetids = assetids;
61 this.throwVisibleError = throwVisibleError;
71 this.assetids =
new String[] { node.
getAsset().getId() };
72 this.throwVisibleError = throwVisibleError;
87 return AssetManager.makeRefreshRequest(assetids,
"");
88 }
catch(IOException ioe) {
102 if (
get instanceof Element) {
103 Element element = (Element)
get;
104 AssetManager.refreshAssets(element);
111 }
else if (
get instanceof IOException) {
112 IOException ioe = (IOException)
get;
114 if (throwVisibleError) {
160 protected String
getErrorMessage() {
return Matrix.translate(
"asset_map_status_bar_error_requesting"); }
167 protected String
getErrorTitle() {
return Matrix.translate(
"asset_map_status_bar_error_refreshing"); }