2006-07-19 10:36:13 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< html >
< head >
< META HTTP-EQUIV = "Content-Type" CONTENT = "text/html; charset=UTF-8" >
< META HTTP-EQUIV = "Content-Style-Type" CONTENT = "text/css" >
< meta name = "copyright" content = "Copyright (c) IBM Corporation and others 2002, 2006. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
< LINK REL = "STYLESHEET" HREF = "../../../book.css" TYPE = "text/css" >
< title > Sample Message File< / title >
< / head >
< body bgcolor = "#ffffff" >
< h1 > Sample Message File< / h1 >
< p > This is an example of a simple message file, say in < samp > sampleMessages.xml< / samp > , which has defined messages for only a single component.
< pre >
< ?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE MessageFile SYSTEM "../org.eclipse.rse.ui/messageFile.dtd">
< !-- < I > This is an exammple of a message file used by SystemMessage and SystemMessageDialog< / I > -->
< MessageFile Version="1.0">
< Component Name="Samples Plugin" Abbr="< B > SPP< / B > ">
< Subcomponent Name="Dialogs" Abbr="< B > D< / B > ">
< !-- Component 'D' for dialog sample messages -->
< MessageList>
< A name = "SPPD1000" > < / A > < Message ID="< B > 1000< / B > " Indicator="E">
< LevelOne> You must enter a name< /LevelOne>
< LevelTwo> You have left the customer name empty. Specify a name.< /LevelTwo>
< /Message>
< A name = "SPPD1001" > < / A > < Message ID="< B > 1001< / B > " Indicator="E">
< LevelOne> You must enter a birth year< /LevelOne>
< LevelTwo> You have left the birth year empty. Specify a year.< /LevelTwo>
< /Message>
< A name = "SPPD1002" > < / A > < Message ID="< B > 1002< / B > " Indicator="E">
< LevelOne> %1 is not a valid year< /LevelOne>
< LevelTwo> The birth year specified is not within the valid range of %2 to %3.< /LevelTwo>
< /Message>
< A name = "SPPD1003" > < / A > < Message ID="< B > 1003< / B > " Indicator="E">
< LevelOne> Year %1 is out of range< /LevelOne>
< LevelTwo> The value you specified for the birth year is not a valid number.< /LevelTwo>
< /Message>
< A name = "SPPD1004" > < / A > < Message ID="< B > 1004< / B > " Indicator="E">
< LevelOne> You must enter a birth month< /LevelOne>
< LevelTwo> You have left the birth month empty. Specify a month.< /LevelTwo>
< /Message>
< A name = "SPPD1005" > < / A > < Message ID="< B > 1005< / B > " Indicator="E">
< LevelOne> %1 is not a valid month< /LevelOne>
< LevelTwo> The value you specified for the birth month is not a valid number.< /LevelTwo>
< /Message>
< A name = "SPPD1006" > < / A > < Message ID="< B > 1006< / B > " Indicator="E">
< LevelOne> Month %1 is out of range< /LevelOne>
< LevelTwo> The birth month specified is not within the valid range of %2 to %3.< /LevelTwo>
< /Message>
< A name = "SPPD1007" > < / A > < Message ID="< B > 1007< / B > " Indicator="E">
< LevelOne> You must enter a birth day< /LevelOne>
< LevelTwo> You have left the birth day empty. Specify a day.< /LevelTwo>
< /Message>
< A name = "SPPD1008" > < / A > < Message ID="< B > 1008< / B > " Indicator="E">
< LevelOne> %1 is not a valid day< /LevelOne>
< LevelTwo> The value you specified for the birth day is not a valid number.< /LevelTwo>
< /Message>
< A name = "SPPD1009" > < / A > < Message ID="< B > 1009< / B > " Indicator="E">
< LevelOne> Day %1 is out of range< /LevelOne>
< LevelTwo> The birth day specified is not within the valid range of %2 to %3.< /LevelTwo>
< /Message>
< A name = "SPPD1010" > < / A > < Message ID="< B > 1010< / B > " Indicator="I">
< LevelOne> Customer %1 created successfully. Re-run to see update mode.< /LevelOne>
< LevelTwo> The customer was created. Re-running the same sample action will show the dialog in update mode.< /LevelTwo>
< /Message>
< A name = "SPPD1011" > < / A > < Message ID="< B > 1011< / B > " Indicator="I">
< LevelOne> Customer %1 updated successfully.< /LevelOne>
< LevelTwo> Congratulations!< /LevelTwo>
< /Message>
< /MessageList>
< /Subcomponent>
< /Component>
< /MessageFile>
< / pre >
< P > < BR > < / P >
< / body >
< / html >