Lines Matching refs:bundle

32     private String baseClass;                                   // The name of the base class of the active resource bundle
89 * This is the standard constructor for RBManager. It is constructed from the root of a resource bundle.
94 * translation is reversed when saving the resource bundle.
95 * @param mainFile The base class file of the resource bundle to be read
387 Bundle bundle = (Bundle)bundles.elementAt(i);
389 ((bundle.encoding == null || bundle.encoding.equals("")) ? "" : "_" + bundle.encoding) +
392 bundle.writeContents(fw);
396 // In case this is a newly created bundle or the location has changed recently, update the recent files, preference
402 * Calling this method removes a resource from the resource bundle. This method does not permanently
405 * the bundle will have to be recreated. (This last point may change)
410 Bundle bundle = (Bundle)bundles.elementAt(i);
411 if (bundle.encoding.equals(encoding)) {
412 bundles.removeElement(bundle);
425 Bundle bundle = (Bundle)bundles.elementAt(i);
426 if (!(bundle.encoding.equals(encoding))) continue;
428 ((bundle.encoding == null || bundle.encoding.equals("")) ? "" : "_" + bundle.encoding) +
443 Bundle bundle = (Bundle)bundles.elementAt(i);
444 if (bundle.encoding.equals(encoding) || (i==0 && encoding.equals(""))) {
446 ((bundle.encoding == null || bundle.encoding.equals("")) ? "" : "_" + bundle.encoding) +
449 bundle.writeContents(fw);
455 // In case this is a newly created bundle or the location has changed recently, update the recent files, preference
475 Bundle bundle = (Bundle)bundles.elementAt(i);
476 BundleItem oldItem = (BundleItem)bundle.allItems.get(oldName);
481 bundle.allItems.remove(oldItem);
482 bundle.allItems.put(oldItem.getKey(), oldItem);
490 BundleGroup bg = bundle.getBundleGroup(groupName);
491 if (bg == null) bg = bundle.getUngroupedGroup();
530 Bundle bundle = (Bundle)bundles.elementAt(i);
533 for (int j=0; j < bundle.getGroupCount(); j++) {
534 BundleGroup bg = bundle.getBundleGroup(j);
538 group = new BundleGroup(bundle, groupName);
539 bundle.addBundleGroup(group);
546 bundle.allItems.put(name, item);
547 bundle.addUntranslatedItem(item);
570 Bundle bundle = (Bundle)bundles.elementAt(i);
571 BundleGroup bg = new BundleGroup(bundle, groupName);
574 bundle.addBundleGroup(bg);
591 Bundle bundle = (Bundle)bundles.elementAt(i);
592 bundle.removeGroup(groupName);
608 Bundle bundle = (Bundle)bundles.elementAt(i);
609 bundle.removeUntranslatedItem(itemName);
612 Enumeration items = bundle.allItems.elements();
616 bundle.allItems.remove(item);
624 * Looks through the resources contained in the bundle for a resource of the given encoding. Note that this
658 Bundle bundle = new Bundle(encoding);
659 bundle.name = title;
660 bundle.comment = comment;
661 bundle.manager = manager;
662 bundle.language = language;
663 bundle.country = country;
664 bundle.variant = variant;
667 bundle.addBundleGroup("Ungrouped Items", "These are resource items that have not been assigned a group");
673 BundleGroup bg = new BundleGroup(bundle,mainGroup.getName());
675 bundle.addBundleGroup(bg);
691 bundle.addUntranslatedItem(item);
696 bundles.addElement(bundle);
718 * Returns a Vector collection of duplicate BundleItems found in the bundle
734 * Returns a vector collection of all of the BundleGroup items founds int the bundle.
739 Bundle bundle = (Bundle)bundles.firstElement();
740 for (int i=0; i < bundle.getGroupCount(); i++) {
741 String name = bundle.getBundleGroup(i).getName();
792 * Returns the number of BundleGroups in the bundle.
816 * Sets the name of the base class associated with this resource bundle
824 * Sets the directory in the file system in which this resource bundle is to be
855 * Return a bundle from a locale
856 * @return The requested resource bundle
859 Bundle bundle = null;
864 bundle = tempb;
869 return bundle;
873 * Returns the name of the file that is the base class file for the resource bundle.