Package org.jitterbit.ui

Examples of org.jitterbit.ui.ResourceBundleStringResources


     *            the name of the <code>ResourceBundle</code> to load.
     * @return the requested <code>StringResources</code>.
     */
    public StringResources loadStringsFromResourceBundle(String name) {
        try {
            return new ResourceBundleStringResources(name, MNEMONIC_FACTORY);
        } catch (Exception ex) {
            handleBundleException(name, ex);
            return null;
        }
    }
View Full Code Here


     */
    public static NewResourceBasedMenuDictionary newDictionary(String strings,
                                                               MnemonicStringFactory mnemonicsFactory,
                                                               String icons,
                                                               MenuDictionary parent) {
        StringResources sr = new ResourceBundleStringResources(strings, mnemonicsFactory);
        IconProvider ic = new ResourceBundleIconProvider(icons);
        return new NewResourceBasedMenuDictionary(sr, ic, parent);
    }
View Full Code Here

    public static NewResourceBasedActionDictionary newDictionary(
                    String strings,
                    MnemonicStringFactory mnemonicsFactory,
                    String icons,
                    ActionDictionary parent) {
        StringResources sr = new ResourceBundleStringResources(strings, mnemonicsFactory);
        IconProvider ic = new ResourceBundleIconProvider(icons);
        return new NewResourceBasedActionDictionary(sr, ic, parent);
    }
View Full Code Here

    // HACK: The name of the ABOUT action cannot be hardcoded, since it contains the product name.
    // This is an ugly name of fixing this, it would be nice to come up with a better way.
    private static final class DictionaryImpl extends NewResourceBasedActionDictionary {

        public DictionaryImpl() {
            super(new ResourceBundleStringResources(STRINGS, ApplicationResources.MNEMONIC_FACTORY),
                            new ResourceBundleIconProvider(ICONS), null);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.ResourceBundleStringResources

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.