@Override public void loadPixelPerfectData(IHvDevice device) { super.loadPixelPerfectData(device); // The windows tab hides the tree tab, so let's bring the tree tab // forward. IWorkbenchWindow[] windows = HierarchyViewerPlugin.getPlugin().getWorkbench().getWorkbenchWindows(); for (IWorkbenchWindow window : windows) { IWorkbenchPage page = window.getActivePage(); if (page.getPerspective().getId().equals(PixelPerfectPespective.ID)) { try { IWorkbenchPart part = page.findView(PixelPerfectTreeView.ID); if (part != null) { page.showView(PixelPerfectTreeView.ID); } } catch (PartInitException e) { } } } }
@Override public void loadViewTreeData(Window window) { super.loadViewTreeData(window); // The windows tab hides the property tab, so let's bring the property // tab // forward. IWorkbenchWindow[] windows = HierarchyViewerPlugin.getPlugin().getWorkbench().getWorkbenchWindows(); for (IWorkbenchWindow currentWindow : windows) { IWorkbenchPage page = currentWindow.getActivePage(); if (page.getPerspective().getId().equals(TreeViewPerspective.ID)) { try { IWorkbenchPart part = page.findView(PropertyView.ID); if (part != null) { page.showView(PropertyView.ID); } } catch (PartInitException e) { } } } }