< prev index next >

src/share/classes/sun/applet/resources/MsgAppletViewer.java

Print this page
rev 1506 : 6959252: convert the anonymous arrays to named arrays in Java List Resource files
Reviewed-by: katakai, psun


  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package sun.applet.resources;
  26 
  27 import java.util.ListResourceBundle;
  28 
  29 public class MsgAppletViewer extends ListResourceBundle {
  30 
  31     public Object[][] getContents() {
  32         return new Object[][] {
  33             {"textframe.button.dismiss", "Dismiss"},
  34             {"appletviewer.tool.title", "Applet Viewer: {0}"},
  35             {"appletviewer.menu.applet", "Applet"},
  36             {"appletviewer.menuitem.restart", "Restart"},
  37             {"appletviewer.menuitem.reload", "Reload"},
  38             {"appletviewer.menuitem.stop", "Stop"},
  39             {"appletviewer.menuitem.save", "Save..."},
  40             {"appletviewer.menuitem.start", "Start"},
  41             {"appletviewer.menuitem.clone", "Clone..."},
  42             {"appletviewer.menuitem.tag", "Tag..."},
  43             {"appletviewer.menuitem.info", "Info..."},
  44             {"appletviewer.menuitem.edit", "Edit"},
  45             {"appletviewer.menuitem.encoding", "Character Encoding"},
  46             {"appletviewer.menuitem.print", "Print..."},
  47             {"appletviewer.menuitem.props", "Properties..."},
  48             {"appletviewer.menuitem.close", "Close"},
  49             {"appletviewer.menuitem.quit", "Quit"},
  50             {"appletviewer.label.hello", "Hello..."},
  51             {"appletviewer.status.start", "starting applet..."},
  52             {"appletviewer.appletsave.filedialogtitle","Serialize Applet into File"},


 180             {"appletsecurityexception.checkwrite.fd", "Security Exception: fd.write"},
 181             {"appletsecurityexception.checklisten", "Security Exception: socket.listen: {0}"},
 182             {"appletsecurityexception.checkaccept", "Security Exception: socket.accept: {0}:{1}"},
 183             {"appletsecurityexception.checkconnect.networknone", "Security Exception: socket.connect: {0}->{1}"},
 184             {"appletsecurityexception.checkconnect.networkhost1", "Security Exception: Couldn''t connect to {0} with origin from {1}."},
 185             {"appletsecurityexception.checkconnect.networkhost2", "Security Exception: Couldn''t resolve IP for host {0} or for {1}. "},
 186             {"appletsecurityexception.checkconnect.networkhost3", "Security Exception: Could not resolve IP for host {0}. See the trustProxy property."},
 187             {"appletsecurityexception.checkconnect", "Security Exception: connect: {0}->{1}"},
 188             {"appletsecurityexception.checkpackageaccess", "Security Exception: cannot access package: {0}"},
 189             {"appletsecurityexception.checkpackagedefinition", "Security Exception: cannot define package: {0}"},
 190             {"appletsecurityexception.cannotsetfactory", "Security Exception: cannot set factory"},
 191             {"appletsecurityexception.checkmemberaccess", "Security Exception: check member access"},
 192             {"appletsecurityexception.checkgetprintjob", "Security Exception: getPrintJob"},
 193             {"appletsecurityexception.checksystemclipboardaccess", "Security Exception: getSystemClipboard"},
 194             {"appletsecurityexception.checkawteventqueueaccess", "Security Exception: getEventQueue"},
 195             {"appletsecurityexception.checksecurityaccess", "Security Exception: security operation: {0}"},
 196             {"appletsecurityexception.getsecuritycontext.unknown", "unknown class loader type. unable to check for getContext"},
 197             {"appletsecurityexception.checkread.unknown", "unknown class loader type. unable to check for checking read {0}"},
 198             {"appletsecurityexception.checkconnect.unknown", "unknown class loader type. unable to check for checking connect"},
 199         };


 200     }
 201 }


  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package sun.applet.resources;
  26 
  27 import java.util.ListResourceBundle;
  28 
  29 public class MsgAppletViewer extends ListResourceBundle {
  30 
  31     public Object[][] getContents() {
  32         Object[][] temp = new Object[][] {
  33             {"textframe.button.dismiss", "Dismiss"},
  34             {"appletviewer.tool.title", "Applet Viewer: {0}"},
  35             {"appletviewer.menu.applet", "Applet"},
  36             {"appletviewer.menuitem.restart", "Restart"},
  37             {"appletviewer.menuitem.reload", "Reload"},
  38             {"appletviewer.menuitem.stop", "Stop"},
  39             {"appletviewer.menuitem.save", "Save..."},
  40             {"appletviewer.menuitem.start", "Start"},
  41             {"appletviewer.menuitem.clone", "Clone..."},
  42             {"appletviewer.menuitem.tag", "Tag..."},
  43             {"appletviewer.menuitem.info", "Info..."},
  44             {"appletviewer.menuitem.edit", "Edit"},
  45             {"appletviewer.menuitem.encoding", "Character Encoding"},
  46             {"appletviewer.menuitem.print", "Print..."},
  47             {"appletviewer.menuitem.props", "Properties..."},
  48             {"appletviewer.menuitem.close", "Close"},
  49             {"appletviewer.menuitem.quit", "Quit"},
  50             {"appletviewer.label.hello", "Hello..."},
  51             {"appletviewer.status.start", "starting applet..."},
  52             {"appletviewer.appletsave.filedialogtitle","Serialize Applet into File"},


 180             {"appletsecurityexception.checkwrite.fd", "Security Exception: fd.write"},
 181             {"appletsecurityexception.checklisten", "Security Exception: socket.listen: {0}"},
 182             {"appletsecurityexception.checkaccept", "Security Exception: socket.accept: {0}:{1}"},
 183             {"appletsecurityexception.checkconnect.networknone", "Security Exception: socket.connect: {0}->{1}"},
 184             {"appletsecurityexception.checkconnect.networkhost1", "Security Exception: Couldn''t connect to {0} with origin from {1}."},
 185             {"appletsecurityexception.checkconnect.networkhost2", "Security Exception: Couldn''t resolve IP for host {0} or for {1}. "},
 186             {"appletsecurityexception.checkconnect.networkhost3", "Security Exception: Could not resolve IP for host {0}. See the trustProxy property."},
 187             {"appletsecurityexception.checkconnect", "Security Exception: connect: {0}->{1}"},
 188             {"appletsecurityexception.checkpackageaccess", "Security Exception: cannot access package: {0}"},
 189             {"appletsecurityexception.checkpackagedefinition", "Security Exception: cannot define package: {0}"},
 190             {"appletsecurityexception.cannotsetfactory", "Security Exception: cannot set factory"},
 191             {"appletsecurityexception.checkmemberaccess", "Security Exception: check member access"},
 192             {"appletsecurityexception.checkgetprintjob", "Security Exception: getPrintJob"},
 193             {"appletsecurityexception.checksystemclipboardaccess", "Security Exception: getSystemClipboard"},
 194             {"appletsecurityexception.checkawteventqueueaccess", "Security Exception: getEventQueue"},
 195             {"appletsecurityexception.checksecurityaccess", "Security Exception: security operation: {0}"},
 196             {"appletsecurityexception.getsecuritycontext.unknown", "unknown class loader type. unable to check for getContext"},
 197             {"appletsecurityexception.checkread.unknown", "unknown class loader type. unable to check for checking read {0}"},
 198             {"appletsecurityexception.checkconnect.unknown", "unknown class loader type. unable to check for checking connect"},
 199         };
 200 
 201         return temp;
 202     }
 203 }
< prev index next >