eclipse - Splash screen & login dialog box doesn't stick together -


i working on eclipse rcp application in load splash screen first , login asks credentials , main application. here problem occurs "splash screen & login dialog box don't stick together" eclipse's "splash screen , workspace launcher" when open eclipse. why need such mechanism because if use "alt"+"tab" of windows hidden behind current thread sometime it's hard find login box or splash screen.

to behave eclipse splash screen , workspace launcher need use standard eclipse splash screen mechanism , write own iapplication.

in iapplication start method like:

@override public object start(iapplicationcontext appcontext) throws exception {     display display = platformui.createdisplay();      try {         // , see if there's splash shell can parent off of         shell shell = workbenchplugin.getsplashshell(display);         if (shell != null) {             shell.settext("login window title");             shell.setimages(window.getdefaultimages());         }          new logindialog(shell);  // use splash shell parent shell          // todo call platformui.createandrunworkbench in usual way     }      {         if (display != null) {             display.dispose();         }     } 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -