Saturday, September 26, 2015

How to restart eclipse programmatically

If you want to restart  eclipse programmatically then  you have restart the eclipse workbench . You can use following code snippets



String message = "You must restart eclipse to apply these changes, Restart Now ?";
if(MessageDialog.openQuestion(Display.getCurrent().getActiveShell(),"Developer Studio Info", message)){
   
  PlatformUI.getWorkbench().restart();

}


No comments:

Post a Comment