1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 13:05:22 +02:00

[226773] [apidoc] Improve SimpleSystemMessage Javadocs

This commit is contained in:
Martin Oberhuber 2008-04-22 15:25:28 +00:00
parent 9358c748de
commit 6ec42deeac

View file

@ -28,31 +28,11 @@ public class SimpleSystemMessage extends SystemMessage {
private String _messageId; private String _messageId;
/** /**
* Constructor for messages that use explicit Strings and severities. * Creates a String based System Message with severity and ID, but no
* message details.
* *
* This allows using the RSE Messaging Framework based on simple String * See {@link #SimpleSystemMessage(String, String, int, String, String)} for
* messages and IDs, rather than using XML Message files from * a detailed description.
* {@link SystemMessageFile} along with the
* <code>org.eclipse.rse.ui.SystemBasePlugin#loadMessageFile()</code> and
* <code>org.eclipse.rse.ui.SystemBasePlugin#getMessage()</code> methods.
*
* Clients can use either globally unique RSE message IDs or plugin-specific
* local IDs. RSE-global message IDs are of the form:
* RSE&lt;subcomponent&gt;&lt;number&gt;
*
* The subcomponent is a single character:
* <ul>
* <li>"G" for General</li>
* <li>"O" for Other</li>
* <li>"F" for Files</li>
* <li>"C" for Communications</li>
* </ul>
*
* The number is a four digit number.
*
* Plugin-specific local IDs need only be unique strings within a plugin
* that are not prefixed by "RSE". The relative IDs are qualified by the
* specified plugin ID.
* *
* @param pluginId the id of the originating plugin * @param pluginId the id of the originating plugin
* @param messageId the RSE-global unique ID or plugin-specific local ID of * @param messageId the RSE-global unique ID or plugin-specific local ID of
@ -65,7 +45,8 @@ public class SimpleSystemMessage extends SystemMessage {
} }
/** /**
* Constructor for messages that use explicit Strings and severities. * Creates a String based System Message with severity, ID and String
* message details.
* *
* This allows using the RSE Messaging Framework based on simple String * This allows using the RSE Messaging Framework based on simple String
* messages and IDs, rather than using XML Message files from * messages and IDs, rather than using XML Message files from
@ -74,29 +55,42 @@ public class SimpleSystemMessage extends SystemMessage {
* <code>org.eclipse.rse.ui.SystemBasePlugin#getMessage()</code> methods. * <code>org.eclipse.rse.ui.SystemBasePlugin#getMessage()</code> methods.
* *
* Clients can use either globally unique RSE message IDs or plugin-specific * Clients can use either globally unique RSE message IDs or plugin-specific
* local IDs. RSE-global message IDs are of the form: * local IDs. <b>RSE-global message IDs</b> are of the form:
* RSE&lt;subcomponent&gt;&lt;number&gt; * RSE&lt;subcomponent&gt;&lt;number&gt;, where the subcomponent is a single
* * character:
* The subcomponent is a single character:
* <ul> * <ul>
* <li>"G" for General</li> * <li>"G" for General</li>
* <li>"O" for Other</li> * <li>"O" for Other</li>
* <li>"F" for Files</li> * <li>"F" for Files</li>
* <li>"C" for Communications</li> * <li>"C" for Communications</li>
* </ul> * </ul>
* and the number is a four digit number.
* *
* The number is a four digit number. * Some RSE-global message IDs are predefined in {@link ICommonMessageIds}.
* When used in a SimpleSystemMessage, these common message IDs must be used
* along with the matching message Strings from {@link CommonMessages}, in
* order to be consistent to the user. For example:
* *
* Plugin-specific local IDs need only be unique strings within a plugin * <pre>
* that are not prefixed by "RSE". The relative IDs are qualified by the * msg = new SimpleSystemMessage(Activator.PLUGIN_ID, ICommonMessageIds.MSG_COMM_AUTH_FAILED, IStatus.ERROR, CommonMessages.MSG_COMM_AUTH_FAILED, NLS.bind(
* specified plugin ID. * CommonMessages.MSG_COMM_AUTH_FAILED_DETAILS, getHost().getAliasName()));
* </pre>
*
* <b>Plugin-specific local IDs</b> are totally free to be defined by the
* plugin that creates a specific message, as long as they are not prefixed
* by "RSE". It is recommended that plugins define unique IDs for various
* message situations, because this helps problem determination with end
* users; but it is not a requirement. Local ID's are specific to the plugin
* ID: relative IDs are qualified by the specified plugin ID, so they live
* in the plugin ID namespace.
* *
* @param pluginId the id of the originating plugin * @param pluginId the id of the originating plugin
* @param messageId the RSE-global unique ID or plugin-specific local ID of * @param messageId the RSE-global unique ID or plugin-specific local ID of
* the message * the message
* @param severity using IStatus severities * @param severity using IStatus severities
* @param msg the message text * @param msg the message text to be logged or displayed to the user
* @param msgDetails the message details * @param msgDetails the message details with additional information to be
* displayed on request only
*/ */
public SimpleSystemMessage(String pluginId, String messageId, int severity, String msg, String msgDetails) { public SimpleSystemMessage(String pluginId, String messageId, 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$
@ -106,32 +100,11 @@ public class SimpleSystemMessage extends SystemMessage {
} }
/** /**
* Constructor for messages that use explicit Strings and severities. * Creates a String based System Message with severity and ID, and an
* * Exception that will be converted into message details.
* This allows using the RSE Messaging Framework based on simple String
* messages and IDs, rather than using XML Message files from
* {@link SystemMessageFile} along with the
* <code>org.eclipse.rse.ui.SystemBasePlugin#loadMessageFile()</code> and
* <code>org.eclipse.rse.ui.SystemBasePlugin#getMessage()</code> methods.
*
* Clients can use either globally unique RSE message IDs or plugin-specific
* local IDs. RSE-global message IDs are of the form:
* RSE&lt;subcomponent&gt;&lt;number&gt;
*
* The subcomponent is a single character:
* <ul>
* <li>"G" for General</li>
* <li>"O" for Other</li>
* <li>"F" for Files</li>
* <li>"C" for Communications</li>
* </ul>
*
* The number is a four digit number.
*
* Plugin-specific local IDs need only be unique strings within a plugin
* that are not prefixed by "RSE". The relative IDs are qualified by the
* specified plugin ID.
* *
* See {@link #SimpleSystemMessage(String, String, int, String, String)} for
* a detailed description.
* *
* @param pluginId the id of the originating plugin * @param pluginId the id of the originating plugin
* @param messageId the RSE-global unique ID or plugin-specific local ID of * @param messageId the RSE-global unique ID or plugin-specific local ID of
@ -147,17 +120,14 @@ public class SimpleSystemMessage extends SystemMessage {
} }
/** /**
* Constructor for messages that use explicit Strings and severities. * Creates a String based System Message with a severity and plug-in ID, but
* * no global or plug-in specific message ID or detail message.
* This allows using the RSE Messaging Framework based on simple String
* messages and IDs, rather than using XML Message files from
* {@link SystemMessageFile} along with the
* <code>org.eclipse.rse.ui.SystemBasePlugin#loadMessageFile()</code> and
* <code>org.eclipse.rse.ui.SystemBasePlugin#getMessage()</code> methods.
* *
* This constructor does not supply a message id. It is preferred that a * This constructor does not supply a message id. It is preferred that a
* message id is used since it allows easier identification of a unique * message id is used since it allows easier identification of a unique
* message. * message. See
* {@link #SimpleSystemMessage(String, String, int, String, String)} for a
* detailed description about messages and ID's.
* *
* @param pluginId the id of the originating plugin * @param pluginId the id of the originating plugin
* @param severity using IStatus severities * @param severity using IStatus severities
@ -168,17 +138,14 @@ public class SimpleSystemMessage extends SystemMessage {
} }
/** /**
* Constructor for messages that use explicit Strings and severities. * Creates a String based System Message with a severity and plug-in ID as
* * well as message details, but no global or plug-in specific message ID.
* This allows using the RSE Messaging Framework based on simple String
* messages and IDs, rather than using XML Message files from
* {@link SystemMessageFile} along with the
* <code>org.eclipse.rse.ui.SystemBasePlugin#loadMessageFile()</code> and
* <code>org.eclipse.rse.ui.SystemBasePlugin#getMessage()</code> methods.
* *
* This constructor does not supply a message id. It is preferred that a * This constructor does not supply a message id. It is preferred that a
* message id is used since it allows easier identification of a unique * message id is used since it allows easier identification of a unique
* message. * message. See
* {@link #SimpleSystemMessage(String, String, int, String, String)} for a
* detailed description about messages and ID's.
* *
* @param pluginId the id of the originating plugin * @param pluginId the id of the originating plugin
* @param severity using IStatus severities * @param severity using IStatus severities
@ -192,17 +159,15 @@ public class SimpleSystemMessage extends SystemMessage {
} }
/** /**
* Constructor for messages that use explicit Strings and severities. * Creates a String based System Message with a severity and plug-in ID, as
* * well as an exception to convert into message details, but no global or
* This allows using the RSE Messaging Framework based on simple String * plug-in specific message ID.
* messages and IDs, rather than using XML Message files from
* {@link SystemMessageFile} along with the
* <code>org.eclipse.rse.ui.SystemBasePlugin#loadMessageFile()</code> and
* <code>org.eclipse.rse.ui.SystemBasePlugin#getMessage()</code> methods.
* *
* This constructor does not supply a message id. It is preferred that a * This constructor does not supply a message id. It is preferred that a
* message id is used since it allows easier identification of a unique * message id is used since it allows easier identification of a unique
* message. * message. See
* {@link #SimpleSystemMessage(String, String, int, String, String)} for a
* detailed description about messages and ID's.
* *
* @param pluginId the id of the originating plugin * @param pluginId the id of the originating plugin
* @param severity using IStatus severities * @param severity using IStatus severities