This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | No means of controlling which panel is selected | ||
---|---|---|---|
Product: | platform | Reporter: | Nathan Fiedler <nlfiedler> |
Component: | Navigator | Assignee: | David Simonek <dsimonek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | anebuzelsky |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 100457 | ||
Bug Blocks: | 97141 |
Description
Nathan Fiedler
2007-03-06 23:39:35 UTC
In Visual Mobile Designer we have similar problem. We have a "Design View" with contains a NavigatorLookupHint. The lookup of the TopComponent also contains related DataObject. Therefore the navigator is still showing the "Member View" (from Java file navigator) and even though it does not make sense to have it for this view. Instead our navigator should be shown. The solution could be: 1) to be able to have a control for forcing the selected navigator panel or 2) to be able to remove navigator panel or 3) each navigator panel has to have a "priority" property which is used for resolving a selected panel while a view/node/lookup is changed. Setting as P2 since it becomes a significant usability problem now. Navigator API already contains NavigatorHandler.activatePanel method, which does exactly what you would like to achieve I believe. for details please see javadoc http://www.netbeans.org/download/dev/javadoc/org-netbeans-spi-navigator/org/netbeans/spi/navigator/NavigatorHandler.html In case this API isn't enough, please reopen and describe, thanks. Unfortunately NavigatorHandler.activatePanel depends on many conditions which are not possible to check outside Navigator module. For example: if list of Navigators is not yet initialized this method will throw NPE, this invalid state its common while opening IDE, another problem is that while using NavigatorHandler.activatePanel developer is never sure if required NavigatorPanel is already in list of NavigationPanels. Thees problems could be avoid by modifying Navigator API and providing Priority for NavigatorPanel, so ordering and activation of required NAvigatorPanel could be done inside Navigator module based on priorities of panels available inside of NavigatorPanels list. I'm sorry but i don't understand most of what you said... I saw that you entered the bug for NPE, I'll try to fix it. But aside from this, what are speficically other problems? What prevents you from calling activatePanel when your top component is activated? After discussion with David we have find a conclusion that for NetBeans Mobility Pack it would be enough to have ability to disable searching for NavigatorLookHint in data-objects. OK I probably forgot to close this issue, closing now, hopefully problem is solved. |