如果eclipse workbench是空

来源:互联网 发布:idm for mac 编辑:程序博客网 时间:2024/06/09 21:01
eclipse workbench is null:
just use this line:
this.getSite().getPage()

refs: http://wiki.eclipse.org/FAQ_How_do_I_find_the_active_workbench_page%3F