Re: Examples of NavigatorDisplayer
Matteo Di Giovinazzo <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CA+ZY4+-j6ONs4S5LvqSskpDO51-gyvFN1uMd4K7jw-qu-HrQYQ@mail.gmail.com> |
Hi there, bumping this discussion:
Anyone out there used the NavigatorDisplayer API? I red it has been used in
JDeveloper (and likely created specifically for it): is there any Oracle
developer that can give me some hint?
I followed what is in the API
http://bits.netbeans.org/8.1/javadoc/org-netbeans-spi-navigator/org/netbeans/spi/navigator/NavigatorDisplayer.html
1. I created another top component
2. registered as a ServiceProvider implementing NavigatorDisplayer
interface
3. called NavigatorHandler.activateNavigator() just before opening it
4. but I do not receive any of these calls NavigatorDisplayer:
void *setPanels
<http://bits.netbeans.org/8.1/javadoc/org-netbeans-spi-navigator/org/netbeans/spi/navigator/NavigatorDisplayer.html#setPanels(java.util.List,%20org.netbeans.spi.navigator.NavigatorPanel)>*
(List
<http://download.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true><?
extends NavigatorPanel
<http://bits.netbeans.org/8.1/javadoc/org-netbeans-spi-navigator/org/netbeans/spi/navigator/NavigatorPanel.html>
> panels, NavigatorPanel
<http://bits.netbeans.org/8.1/javadoc/org-netbeans-spi-navigator/org/netbeans/spi/navigator/NavigatorPanel.html>
select)
Called to set all the panels to display, plus which one should be
selected.
void *setSelectedPanel
<http://bits.netbeans.org/8.1/javadoc/org-netbeans-spi-navigator/org/netbeans/spi/navigator/NavigatorDisplayer.html#setSelectedPanel(org.netbeans.spi.navigator.NavigatorPanel)>*
(NavigatorPanel
<http://bits.netbeans.org/8.1/javadoc/org-netbeans-spi-navigator/org/netbeans/spi/navigator/NavigatorPanel.html>
panel)
Called to select given panel in the UI.
what am I doing wrong? What is missing?
Thanks for any hint!
-Matteo Di Giovinazzo
On Fri, Dec 16, 2016 at 3:02 PM, Matteo Di Giovinazzo <
[email protected]> wrote:
> Hello, are there any example out there of implementations of
> NavigatorDisplayer?
>
> We would like to use that API to have our own navigator with tabs instead
> of the Navigator combobox to show the different NavigatorPanels.
>
> Thanks for any hint!
> -Matteo
>
> --
>
> *MATTEO DI GIOVINAZZO*
> studioSL developer
> Streamsim Technologies, Inc. <http://www.streamsim.com/>
>
>
--
*MATTEO DI GIOVINAZZO*
studioSL developer
Streamsim Technologies, Inc. <http://www.streamsim.com/>