public static void refreshAsset(MatrixTreeNode parent) { StringBuffer xml = new StringBuffer("<command action=\"get assets\">"); MatrixToolkit.addAssetToXML(xml, parent.getAsset()); xml.append("</command>"); Document response = null; try { response = Matrix.doRequest(xml.toString()); } catch (IOException ioe) { GUIUtilities.error( ioe.getMessage(), "Could not load assets" ); ioe.printStackTrace(); MatrixStatusBar.setStatusAndClear("Request Failed!", 1000); } processAssetsXML(response.getDocumentElement(), parent);
public static void refreshAsset(MatrixTreeNode parent) throws IOException { String[] assetids = new String[] { parent.getAsset().getId() }; Element element = makeRefreshRequest(assetids); processAssetsXML(element, parent);
	public static void refreshAsset(MatrixTreeNode parent) {		StringBuffer xml = new StringBuffer("<command action=\"get assets\">");		MatrixToolkit.addAssetToXML(xml, parent.getAsset());		xml.append("</command>");		Document response = null;		try {			response = Matrix.doRequest(xml.toString());		} catch (IOException ioe) {			GUIUtilities.error(				ioe.getMessage(),				"Could not load assets"			);			ioe.printStackTrace();			MatrixStatusBar.setStatusAndClear("Request Failed!", 1000);		}		processAssetsXML(response.getDocumentElement(), parent);	}