0
是什麼Display.getCurrent.close之間的差異();和PlatformUI.getWorkbench()。close(); ?close()方法
是什麼Display.getCurrent.close之間的差異();和PlatformUI.getWorkbench()。close(); ?close()方法
Display.getCurrent.close()
關閉當前顯示器(有正常只有一個顯示器)。你永遠不會在Eclipse插件中使用它,因爲它會使Eclipse崩潰。它通常使用的唯一地方是在實施IApplication
的RCP類中。
PlatformUI.getWorkbench().close()
關閉Eclipse工作臺及其所有窗口。您可以使用它來乾淨地關閉Eclipse。