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.
Build 200107230100 When you edit some java file in the source editor and you want to rename one, you invoke Rename - action by pressing right mouse-button and choosing appropriate action in the Explorer's popup menu. Sometimes happen, you rename the method, where cursor is placed, in the source editor instead of the file (class, constructor, ...).
Maybe TopComponent.Registry reports activated TopComponent inaccurately. I have a check for getRegistry().getActivated() == this in the Editor TopComponent just prior to node reselection.
So, this happens in MDI or SDI or in both? Are there any special steps that have to be done to get ide into described state? Thanks in advance. Also assigning.
In SDI mode. I tried to repeat it in MDI, but without success. You don't need a special steps. As I wrote, you have a cursor (focus) in the editor and then invoke "Rename" in the Explorer.
Please check if it is not duplicate of issue #12520. Check configuration of your window manager if it is the same as described bellow. (For more details look at #12520.) From #12520: "The problem is specific only to Solaris, CDE window manager. In mentioned configuration right mouse click does NOT activate window. However selected nodes are set according to activated window/top component NOT according location of right mouse click. (So popup menu actions are using selected nodes of activated component which is NOT necessarily component where right mouse click was done.)"
Seems, that it is a same issue. I am using CDE window manager too. I think, it is possible to mark this issue like DUPLICATE.
So I set this as duplicate. *** This issue has been marked as a duplicate of 12520 ***
Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.