use of org.eclipse.scout.rt.platform.status.IStatus in project scout.rt by eclipse.
the class JsonStatus method toJson.
@Override
public JSONObject toJson() {
JSONObject json = new JSONObject();
json.put("message", m_status.getMessage());
json.put("severity", m_status.getSeverity());
json.put("iconId", m_status.getIconId());
json.put("code", m_status.getCode());
if (m_status.isMultiStatus()) {
for (IStatus cs : ((IMultiStatus) m_status).getChildren()) {
json.append("children", new JsonStatus(cs).toJson());
}
}
return json;
}
Aggregations