An rcp application can start the other application? [message #463827] |
Fri, 16 February 2007 04:30 |
Eclipse User |
|
|
|
Originally posted by: jayam.balasubramaniam.gmail.com
Hai all,
I am having an application with login dialog and main 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 if 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.Till this i am clear
This is my code in Application class
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();
}
in LoginDialog class i made the entry in config.ini file once user is
authenducated ,if i restart the application againg my LoginDialog is poped
up,how i cant stop the dialog and start the workbench in user selected
language?
how i can resolve this scenario?
i can make the logindialog and main screen as seprate applications and
LoginDialog starting the main screen application.
(ie) An rcp application can start the other application?Is it feasible?
Could you suggest any other option to resolve this issue?
Thanks,
Jayam
|
|
|
Powered by
FUDForum. Page generated in 0.06380 seconds