Apache NetBeans Wiki Index

Note: These pages are being reviewed.

How to change selected tab of Multiview?

Using org.netbeans.core.api.multiview.MultiViews you can get an instance of org.netbeans.core.api.multiview.MultiViewHandler.

For example: Get the handler for the current TopComponent

TopComponent activated = WindowManager.getDefault().getRegistry().getActivated();
MultiViewHandler mvh = MultiViews.findMultiViewHandler(activated);

Using this handler you can call

  • getPerspectives() to get all available tabs

  • requestActive/requestVisible(MultiViewPerspective desc) to activate the tab

Apache Migration Information

The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.

This page was exported from http://wiki.netbeans.org/DevFaqMultiViewChangeTabInCode , that was last modified by NetBeans user Markiewb on 2016-02-10T19:04:50Z.

NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.