1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Rep Power

    JavaHelp Localization - Change during runtime. -helpset/helpbroker.


    Is there any way to change java help localization during runtime rather than creating a new instance of HelpSet?

    For example:

    -- here is how i instantiate a new helpset.
    final ClassLoader classLoader = HelpSystemUtil.class.getClassLoader();
            final URL url = HelpSet.findHelpSet(classLoader, HELPSET_NAME, locale);
    		try {
    			helpSet = new HelpSet(classLoader, url);
    		} catch (HelpSetException e) {
            helpBroker = helpSet.createHelpBroker();
    -- after that i enable the jave help to my system
    helpBroker.enableHelpKey(component, defaultId, helpSet, presentationType.getValue(), null);
     helpBroker.enableHelpOnButton(button, defaultId, helpSet, presentationType.getValue(), null);
    If I did not change the locale of my system, it works fine.

    The problem is:
    - when i change the locale of my system, the java help also will change accordingly. But it does not change. I believe, it is because the helpset is being override.

    Anyone know how to code so that helpset is not override?

    Last edited by jeprol; November 29th, 2012 at 03:16 AM. Reason: modified title to more meaningful

IMN logo majestic logo threadwatch logo seochat tools logo