close a view in eclipse rcp

I am using eclipse RCP to develop my application.

I have a view with table on it. on double click on a record from that table, it open a new view for that record to edit and there would be more than one view if I clicked more than one record in that table for each record. however when I delete a record from parent view (where I have table) then it should delete the view which is opened for edit of that record.

how can I close the view if I delete a record from the table on parent view.

Any help.


我用它来隐藏视图。

        IWorkbenchPage page = PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow().getActivePage();
        page.hideView(page.findView(View.ID));
链接地址: http://www.djcxy.com/p/18682.html

上一篇: 在Eclipse RCP中将焦点设置为Eclipse控制台视图

下一篇: 在eclipse rcp中关闭一个视图