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.

Bug 13800 - Action Rename is invoked on a bad object
Summary: Action Rename is invoked on a bad object
Status: CLOSED DUPLICATE of bug 12520
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-23 10:20 UTC by Marek Grummich
Modified: 2008-12-23 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Grummich 2001-07-23 10:20:00 UTC
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, ...).
Comment 1 Svata Dedic 2001-07-23 17:35:40 UTC
Maybe TopComponent.Registry reports activated TopComponent
inaccurately. I have a check for getRegistry().getActivated() == this
in the Editor TopComponent just prior to node reselection.
Comment 2 Jan Zajicek 2001-07-25 11:16:50 UTC
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.
Comment 3 Marek Grummich 2001-07-25 12:50:15 UTC
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. 
Comment 4 mslama 2001-07-26 17:15:10 UTC
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.)"

Comment 5 Marek Grummich 2001-07-27 07:44:47 UTC
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.
Comment 6 mslama 2001-07-27 08:17:53 UTC
So I set this as duplicate.

*** This issue has been marked as a duplicate of 12520 ***
Comment 7 Marek Grummich 2002-10-14 11:26:16 UTC
Verified
Comment 8 Quality Engineering 2003-07-01 16:39:18 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.