An rcp application can start another rcp application? [message #463825] |
Fri, 16 February 2007 04:12 |
Eclipse User |
|
|
|
Originally posted by: jayam.balasubramaniam.gmail.com
Hai all,
I am having an application with login dialog and some screen.In
login dialog i have an option to select the language, so the coming up
screen will be in selected language.
For internationalize the application i made the entry in
config.ini
it is working fine,if want to set the language dynamically i have to make
the entry in config.ini and to restart the application.
Display display = PlatformUI.createDisplay();
LoginDialog loginDialog = new LoginDialog(new Shell());
loginDialog.open();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, new
ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IPlatformRunnable.EXIT_RESTART;
}
return IPlatformRunnable.EXIT_OK;
} finally {
display.dispose();
}
|
|
|
Powered by
FUDForum. Page generated in 0.25112 seconds