mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
[220547] allow SimpleSystemMessage without message ID
This commit is contained in:
parent
61fab46170
commit
e1e2cdadff
1 changed files with 8 additions and 1 deletions
|
@ -20,6 +20,8 @@ import java.io.StringWriter;
|
||||||
|
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
|
|
||||||
|
import org.eclipse.rse.internal.services.Activator;
|
||||||
|
|
||||||
public class SimpleSystemMessage extends SystemMessage {
|
public class SimpleSystemMessage extends SystemMessage {
|
||||||
|
|
||||||
private String _pluginId;
|
private String _pluginId;
|
||||||
|
@ -37,7 +39,6 @@ public class SimpleSystemMessage extends SystemMessage {
|
||||||
*/
|
*/
|
||||||
public SimpleSystemMessage(String pluginId, String messageId, int severity, String msg) {
|
public SimpleSystemMessage(String pluginId, String messageId, int severity, String msg) {
|
||||||
this(pluginId, messageId, severity, msg, (String)null);
|
this(pluginId, messageId, severity, msg, (String)null);
|
||||||
_messageId = messageId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -107,6 +108,9 @@ public class SimpleSystemMessage extends SystemMessage {
|
||||||
public SimpleSystemMessage(String pluginId, int severity, String msg, String msgDetails) {
|
public SimpleSystemMessage(String pluginId, int severity, String msg, String msgDetails) {
|
||||||
super("RSE", "G", "-", severityToIndicator(severity), msg, msgDetails); //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$
|
super("RSE", "G", "-", severityToIndicator(severity), msg, msgDetails); //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$
|
||||||
_pluginId = pluginId;
|
_pluginId = pluginId;
|
||||||
|
|
||||||
|
// no message id - log this info
|
||||||
|
Activator.trace("SimpleSystemMessage with no message id in "+pluginId); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -125,6 +129,9 @@ public class SimpleSystemMessage extends SystemMessage {
|
||||||
public SimpleSystemMessage(String pluginId, int severity, String msg, Throwable e) {
|
public SimpleSystemMessage(String pluginId, int severity, String msg, Throwable e) {
|
||||||
super("RSE", "G", "-", severityToIndicator(severity), msg, throwableToDetails(e)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
super("RSE", "G", "-", severityToIndicator(severity), msg, throwableToDetails(e)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||||
_pluginId = pluginId;
|
_pluginId = pluginId;
|
||||||
|
|
||||||
|
// no message id - log this info
|
||||||
|
Activator.trace("SimpleSystemMessage with no message id in "+pluginId); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String throwableToDetails(Throwable e){
|
private static String throwableToDetails(Throwable e){
|
||||||
|
|
Loading…
Add table
Reference in a new issue