2016-05-03 47 views

回答

0

Display.getCurrent.close()關閉當前顯示器(有正常只有一個顯示器)。你永遠不會在Eclipse插件中使用它,因爲它會使Eclipse崩潰。它通常使用的唯一地方是在實施IApplication的RCP類中。

PlatformUI.getWorkbench().close()關閉Eclipse工作臺及其所有窗口。您可以使用它來乾淨地關閉Eclipse。

相關問題