/** * Shows the desired multiview element. Must be called after the editor has been opened (i.e. * WSDLEditorSupport.open()) so the TopComponent will be the active one in the registry. * * @param id identifier of the multiview element. */ public static void requestMultiviewActive(String id) { TopComponent activeTC = TopComponent.getRegistry().getActivated(); MultiViewHandler handler = MultiViews.findMultiViewHandler(activeTC); if (handler != null) { MultiViewPerspective[] perspectives = handler.getPerspectives(); for (MultiViewPerspective perspective : perspectives) { if (perspective.preferredID().equals(id)) { handler.requestActive(perspective); } } } }