Adding extra system properties to an Eclipse programmatic restart
问题 I have a plugin that forces a restart of Eclipse by using: Workbench.getInstance().restart(); However, I need this restart to include a new environment variable: eclipse.refreshBundles=true Is there any way to add such an environment variable for this next restart of Eclipse only? 回答1: Eclipse has 2 modes for restarting: "restart" using the previous command line, or "relaunch" using a new command line. The launcher itself will remember the previous command line, so in order to add a new