1 package com4j.tlbimp.driver; 2 3 import java.text.MessageFormat ; 4 import java.util.ResourceBundle ; 5 6 11 enum Messages { 12 13 USAGE, 14 NO_FILE_NAME, 15 NO_OUTPUT_DIR, 16 CANT_SPECIFY_LIBID_AND_FILENAME, 17 REFERENCED_TYPELIB_GENERATED, 18 ; 19 20 private static final ResourceBundle rb = ResourceBundle.getBundle(Messages.class.getName()); 21 22 String format( Object ... args ) { 23 return MessageFormat.format( rb.getString(name()), args ); 24 } 25 26 public String toString() { 27 return format(); 28 } 29 } 30 | Popular Tags |