Re: MultiViewElement's switching programmatically
Paco Barrera <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAFS-qLkxP_HihyVS-4-h=otBHovumk4wEueZmvzvT+J6kSdK-g@mail.gmail.com> |
Yes, this works fine! The only weird thing is when executes "mvHndlr.getPerspectives();" returns 6 objects when I only have 3. I try with other TopComponents with 2 MultiViewElement and always return 2 perspectives for each MultiViewElement. Is this the usual behaviour? 2016-02-10 20:05 GMT+01:00 Benno Markiewicz <[email protected] >: > 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. >> > >