private boolean openContainer(IContainer container) { if (container != null && container.exists()) try { IViewPart part = PDEPlugin.getActivePage().showView(IPageLayout.ID_RES_NAV); ShowInNavigatorViewAction action = new ShowInNavigatorViewAction(part.getSite()); action.run(container); } catch (PartInitException e) { return false; } return true; }