Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "VE/FAQ"

< VE
(Enter new entries here)
(Enter new entries here)
 
Line 9: Line 9:
  
 
<code>
 
<code>
l= Locale.getDefault();
+
l= Locale.getDefault();
try{messages = ResourceBundle.getBundle("msg",l);}
+
try{messages = ResourceBundle.getBundle("msg",l);}
catch(MissingResourceException e)//if the locale for the current environment isn't available fall back to en_US
+
catch(MissingResourceException e)//if the locale for the current environment isn't available fall back to en_US
{
+
{
 
     l=Locale.US;
 
     l=Locale.US;
 
     messages = ResourceBundle.getBundle("msg",l);
 
     messages = ResourceBundle.getBundle("msg",l);
}
+
}
 
</code>
 
</code>

Latest revision as of 02:01, 21 September 2007

Welcome to the Visual Editor FAQ

Enter new entries here

  • Why is VE not yet working with Eclipse 3.3 ?

The VE team is reforming. The code in CVS works with 3.3 and intermediate builds will be released soon.

  • I Internationalized my program but in VE Java Beans I see only question marks and in VE main window I don't see the internationalized components.

You need to put the locale initialization stuff in the method that gets the main component that contains the other, for example if you have a JFrame in the getJFrame() method you need to put something like this :

l= Locale.getDefault();	
try{messages = ResourceBundle.getBundle("msg",l);}
catch(MissingResourceException e)//if the locale for the current environment isn't available fall back to en_US
{
    l=Locale.US;
    messages = ResourceBundle.getBundle("msg",l);
}

Back to the top