Re: MultiViewElement's switching programmatically
Benno Markiewicz <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAA_aP4jt4YKWsd6X6c9HRn3Ex6bSWkVt2_AM-vpLiNyAinbCfg@mail.gmail.com> |
Hej Paco, But it has requestActive(MultiViewPerspective desc) requestVisible(MultiViewPerspective desc) which should do the job. http://bits.netbeans.org/dev/javadoc/org-netbeans-core-multiview/org/netbeans/core/api/multiview/MultiViewHandler.html PS: I added this to http://wiki.netbeans.org/DevFaqMultiViewChangeTabInCode With kind regards, markiewb 2016-02-10 13:42 GMT+01:00 Paco Barrera <[email protected]>: > Hi all, > > I need to change in a TopComponent with some MultiViewElements from > MultiViewA to MultiViewB programmatically. > > I try getting first the active TopComponent to obtain after the > MultiViewHandler. > > The MultiViewhandler has the method getSelectedPerspective, but not > setSelectedPerspective. > > How can I make this? Is this the correct way to do it? > > Thanks in advance. >