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.
Steps: - Create project with 4 such files: newfile.cc, newfile.h, newfile2.h, newfile3.h ------------------------------------------------------------------ // newfile.cc #include "newfile.h" #include "newfile2.h" #include "newfile3.h" using namespace A; int main(int argc, char** argv) { var1 = 5; var2 = 5; var3 = 5; return (0); } ------------------------------------------------------------------ // newfile.h namespace A { int var1 = 4; } ------------------------------------------------------------------ // newfile2.h namespace A { int var2 = 4; } ------------------------------------------------------------------ // newfile3.h namespace A { int var3 = 4; } ------------------------------------------------------------------ - Push 'Navigate|C/C++ Go To Declaration...' menu item - Type "A" in 'Go To Declaration' window ==> Only 1 item appears in table. I think this tool should find all 3 declarations. Should be: ---------------------------- | Go To Declaration | ---------------------------- | +----------+ | | Name | A | | | +----------+ | | Matching | |--------------------------| | {...} A (newfile.h) | | {...} A (newfile2.h) | | {...} A (newfile3.h) | |--------------------------| | |Open Source| |Close| | +--------------------------+
Now the existent "C/C++ Go to Declaration" is being replaced by the standard "Go to Type" plus additional "Go to Function or Variable" (see issue #112725). After completion of this task, there will be no "Namespaces" check box at all Finding all definitions of the particular namespace is quite a different task that definitely needs another UI. So should anybody need this functionality, please file a separate RFE.
inconsistent with NB6.0 bug