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

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

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


    Hi,

    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.
    Code:
    final ClassLoader classLoader = HelpSystemUtil.class.getClassLoader();
            final URL url = HelpSet.findHelpSet(classLoader, HELPSET_NAME, locale);
    		try {
    			helpSet = new HelpSet(classLoader, url);
    		} catch (HelpSetException e) {
                e.printStackTrace();
                return;
            }
            
            helpBroker = helpSet.createHelpBroker();
    -- after that i enable the jave help to my system
    Code:
    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?

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

IMN logo majestic logo threadwatch logo seochat tools logo