/** * Overridden to expose as public instead of protected */ public void setSeverity(int severity) { super.setSeverity(severity); }
/** * Adds the given status to this multi-status. * * @param status the new child status */ public void add(IStatus status) { Assert.isLegal(status != null); IStatus[] result = new IStatus[children.length + 1]; System.arraycopy(children, 0, result, 0, children.length); result[result.length - 1] = status; children = result; int newSev = status.getSeverity(); if (newSev > getSeverity()) { setSeverity(newSev); } }
/** * Adds the given status to this multi-status. * * @param status the new child status */ public void add(IStatus status) { Assert.isLegal(status != null); IStatus[] result = new IStatus[children.length + 1]; System.arraycopy(children, 0, result, 0, children.length); result[result.length - 1] = status; children = result; int newSev = status.getSeverity(); if (newSev > getSeverity()) { setSeverity(newSev); } }
/** * Adds the given status to this multi-status. * * @param status the new child status */ public void add(IStatus status) { Assert.isLegal(status != null); IStatus[] result = new IStatus[children.length + 1]; System.arraycopy(children, 0, result, 0, children.length); result[result.length - 1] = status; children = result; int newSev = status.getSeverity(); if (newSev > getSeverity()) { setSeverity(newSev); } }
/** * Adds the given status to this multi-status. * * @param status the new child status */ public void add(IStatus status) { Assert.isLegal(status != null); IStatus[] result = new IStatus[children.length + 1]; System.arraycopy(children, 0, result, 0, children.length); result[result.length - 1] = status; children = result; int newSev = status.getSeverity(); if (newSev > getSeverity()) { setSeverity(newSev); } }
/** * Creates and returns a new multi-status object with the given children. * * @param pluginId the unique identifier of the relevant plug-in * @param code the plug-in-specific status code * @param newChildren the list of children status objects * @param message a human-readable message, localized to the * current locale * @param exception a low-level exception, or <code>null</code> if not * applicable */ public MultiStatus(String pluginId, int code, IStatus[] newChildren, String message, Throwable exception) { this(pluginId, code, message, exception); Assert.isLegal(newChildren != null); int maxSeverity = getSeverity(); for (int i = 0; i < newChildren.length; i++) { Assert.isLegal(newChildren[i] != null); int severity = newChildren[i].getSeverity(); if (severity > maxSeverity) maxSeverity = severity; } this.children = new IStatus[newChildren.length]; setSeverity(maxSeverity); System.arraycopy(newChildren, 0, this.children, 0, newChildren.length); }
/** * Creates and returns a new multi-status object with the given children. * * @param pluginId the unique identifier of the relevant plug-in * @param code the plug-in-specific status code * @param newChildren the list of children status objects * @param message a human-readable message, localized to the * current locale * @param exception a low-level exception, or <code>null</code> if not * applicable */ public MultiStatus(String pluginId, int code, IStatus[] newChildren, String message, Throwable exception) { this(pluginId, code, message, exception); Assert.isLegal(newChildren != null); int maxSeverity = getSeverity(); for (int i = 0; i < newChildren.length; i++) { Assert.isLegal(newChildren[i] != null); int severity = newChildren[i].getSeverity(); if (severity > maxSeverity) maxSeverity = severity; } this.children = new IStatus[newChildren.length]; setSeverity(maxSeverity); System.arraycopy(newChildren, 0, this.children, 0, newChildren.length); }
/** * Creates and returns a new multi-status object with the given children. * * @param pluginId the unique identifier of the relevant plug-in * @param code the plug-in-specific status code * @param newChildren the list of children status objects * @param message a human-readable message, localized to the * current locale * @param exception a low-level exception, or <code>null</code> if not * applicable */ public MultiStatus(String pluginId, int code, IStatus[] newChildren, String message, Throwable exception) { this(pluginId, code, message, exception); Assert.isLegal(newChildren != null); int maxSeverity = getSeverity(); for (int i = 0; i < newChildren.length; i++) { Assert.isLegal(newChildren[i] != null); int severity = newChildren[i].getSeverity(); if (severity > maxSeverity) maxSeverity = severity; } this.children = new IStatus[newChildren.length]; setSeverity(maxSeverity); System.arraycopy(newChildren, 0, this.children, 0, newChildren.length); }
/** * Creates and returns a new multi-status object with the given children. * * @param pluginId the unique identifier of the relevant plug-in * @param code the plug-in-specific status code * @param newChildren the list of children status objects * @param message a human-readable message, localized to the * current locale * @param exception a low-level exception, or <code>null</code> if not * applicable */ public MultiStatus(String pluginId, int code, IStatus[] newChildren, String message, Throwable exception) { this(pluginId, code, message, exception); Assert.isLegal(newChildren != null); int maxSeverity = getSeverity(); for (int i = 0; i < newChildren.length; i++) { Assert.isLegal(newChildren[i] != null); int severity = newChildren[i].getSeverity(); if (severity > maxSeverity) maxSeverity = severity; } this.children = new IStatus[newChildren.length]; setSeverity(maxSeverity); System.arraycopy(newChildren, 0, this.children, 0, newChildren.length); }