Package org.jitterbit.ui

Examples of org.jitterbit.ui.ResourceBundleIconProvider


     *            the name of the <code>ResourceBundle</code> to load.
     * @return the requested <code>IconProvider</code>.
     */
    public IconProvider loadIconsFromResourceBundle(String name) {
        try {
            return new ResourceBundleIconProvider(name);
        } 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

                    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

    // 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.ResourceBundleIconProvider

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.