The following technique can be used to get the currently active page and any view within that page.
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IViewPart view = page.findView(MyView.ID);
The MyView.ID specified the ID of the view as declared in the plugin.xml file.
1 comments:
Cool! Thanks
Post a Comment