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 27145 - right-click-menu affects wrong target in CTL_EditorWindo
Summary: right-click-menu affects wrong target in CTL_EditorWindo
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: JDK_SPECIFIC
: 28057 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-09 21:47 UTC by nate allen
Modified: 2008-12-23 09:31 UTC (History)
2 users (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 nate allen 2002-09-09 21:47:57 UTC
I have the CTL_EditorWindow frame residing in a separate window. With multiple 
text files open for editing, I get a row of tabs along the bottom of the frame where 
I can switch between files. Each of these tabs has a menu accessible from a 
right-click, including some options like close and clone view. When I have one file 
in the foreground, and right click on another file's tab, the file in the foreground is 
affected by the option I select, not the file whose tab I clicked on.
Comment 1 nate allen 2002-09-09 21:54:42 UTC
This problem never occured in version 3.3.2
Comment 2 Marian Mirilovic 2002-09-10 09:51:25 UTC
NetBeans version, build number, JDK ?

I have tried it on [nb_dev](20020904) & [nb3.4](20020822-fcs) on
[jdk1.4.1](rc1),[jdk1.3.1](03),[jdk1.4.0](02) and it works fine , but
I tried it with [sierra]-based on [3.3.2] it works this way:
- open more than one file in source editor
- select first tab
- right click on second tab
-> second tab is selected and popup arise
- right click on third tab
-> second tab is still selected and new popup menu arise(it's old
popup but on new position)

So, please add asked info and reopen issue, thanks advance.
Comment 3 nate allen 2002-09-11 22:20:53 UTC
nb version 3.4 200208222340 with jdk 1.4.0

here is what I do:
open more than one file in the source editor.
select first tab.
right-click on second tab.
click on close.
first window closes.
Comment 4 Marian Mirilovic 2002-10-17 12:37:01 UTC
*** Issue 28057 has been marked as a duplicate of this issue. ***
Comment 5 Marian Mirilovic 2002-11-13 15:30:53 UTC
changed owner Dafe -> Peter Z.
Comment 6 Peter Zavadsky 2002-12-04 17:26:55 UTC
Does this happen on jdk1.4.0 only?

I tried it on current build on jdk1.4.1(linux) and it was fine.
Comment 7 nate allen 2002-12-06 19:55:54 UTC
I will test it on my system with 1.4.1 shortly. My current setup, where the problem 
occurs, is with 1.4.0-b92
Comment 8 nate allen 2003-01-20 19:39:35 UTC
ok, this does not happen under java 1.4.1_01 (linux).
Comment 9 Peter Zavadsky 2003-02-24 16:59:08 UTC
I can reproduce it on 1.4.0_02.
Will look at it closer.
Comment 10 Peter Zavadsky 2003-02-26 10:11:37 UTC
Fixed in [trunk]

openide/../util/actions/CallbackSystemAction.java 1.25
core/../windows/frames/DefaultContainerImpl.java 1.74
                       MultiTabbedContainerImpl.java 1.56
                       SplitContainerImpl.java 1.103
Comment 11 nate allen 2003-07-09 22:15:00 UTC
verified for java builds 1.3.1_02-b02, 1.4.1-b01, and 
1.4.2-b28.
Comment 12 Jan Chalupa 2003-11-03 16:15:11 UTC
*** Issue 28057 has been marked as a duplicate of this issue. ***