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 142446 - [65cat] Cannot set breakpoint on same line as implements icon
Summary: [65cat] Cannot set breakpoint on same line as implements icon
Status: RESOLVED DUPLICATE of bug 105746
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 17:51 UTC by Unknown
Modified: 2008-08-04 16:06 UTC (History)
0 users

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 Unknown 2008-07-31 17:51:39 UTC
[ BUILD # : 200807301401 ]
[ JDK VERSION : 1.6.0_07 ]

Product Version: NetBeans IDE Dev (Build 200807301401)
Java: 1.6.0_06; Java HotSpot(TM) 64-Bit Server VM 10.0-b22
System: Linux version 2.6.25-9.slh.1-sidux-amd64 running on amd64;
UTF-8; en_US (nb)
Userdir: /home/sasbeb/.netbeans/dev

I have a line of code like:

 public void setMemberName(String memberName) {_memberName =
memberName;}

(all on one line)
There's an implements icon on the left margin.  If I click on the
left margin to set a breakpoint, it takes me to the interface instead
of letting me set the breakpoint.
Comment 1 Petr Cyhelsky 2008-07-31 18:11:33 UTC
Well, you can - just not this way, but via the ctrl-F8 shortcut, or via Debug|Toggle line breakpoint or via invoking
popup menu on that line and selecting toggle line breakpoint item.
Comment 2 Unknown 2008-07-31 18:46:39 UTC
CTRL-F8 doesn't work on linux.
Comment 3 Petr Cyhelsky 2008-07-31 19:15:14 UTC
Generally or only if you use some fancy stuff like compiz?
Comment 4 Unknown 2008-07-31 19:33:25 UTC
straight KDE and Debian
Comment 5 Petr Dvorak 2008-08-01 01:43:57 UTC
> CTRL-F8 doesn't work on linux.

Indeed: Ctrl+F[X] = "Go to desktop no. [X]".

You need to un-assign the shortcut in your system to make it work in Netbeans. Unless you have 8 desktops, it shouldn't
be a problem for you...
Comment 6 Unknown 2008-08-01 04:19:43 UTC
hmmm... so would this (keyboard assignment) be a java thing or a linux thing? Meaning that the hot key is
not handled in java because of focus issues, or is Linux is eating the shortcut.
I know that Kopete was grabbing the CTRL+I.
I wonder in these cases NB should chose other hotkey assignments on Linux.  As it is, I don't know if there's a 
NB bug (no response on a shortcut) or Linux is gobbling the keystroke.
Comment 7 Petr Cyhelsky 2008-08-01 04:29:43 UTC
Try Issue #134982  :) which i once "wisely" filed
Comment 8 Petr Dvorak 2008-08-01 09:47:12 UTC
The point is that this kind of shortcut definitely should not be overridden by IDE, otherwise you go mad. Imagine you
really had 8 desktops and you were using them - this would be like overriding Ctrl+Alt+Delete on Windows (the most
frequent keyboard shortcut)...

To find out where the problem is, either unassign the shortcut for KDE (you should not need 8 desktops) or try to set
another shortcut for the problematic action in NetBeans...

Following page is very helpful for two reasons - you will learn the shortcuts of your environment and you will know
which shortcuts might have problems in Netbeans IDE:

http://www.novell.com/coolsolutions/tip/2289.html

Note: This is quite frequently met problem:
http://www.nabble.com/Shortcut-for-single-ruby-test-file-run-is-not-work-in-linux-td18535386.html - but IMO definitely
not a separate bug... However the problem with hints you originally filled is definitely a valid issue (but I would
personally say P4).
Comment 9 Vitezslav Stejskal 2008-08-01 10:58:33 UTC
Already reported, thanks.

*** This issue has been marked as a duplicate of 105746 ***
Comment 10 Unknown 2008-08-01 13:55:01 UTC
I agree that it shouldn't be overriden, but NB knows what platform it's running on, so it should use appropriate
shortcuts (like in OS X).  Otherwise, if a menu shortcut shows ctrl-i and it doesn't work, it perceived as a NB bug,
and that the IDE is flakey.
Comment 11 Petr Dvorak 2008-08-04 15:35:28 UTC
Well, IDE knows it is running on Linux. But it has no clue what window/desktop manager is used. Keybindings for
Gnome/KDE/Xfce/... varies - it is impossible to tell which can/cannot be used. This is the difference from MacOS or
Windows...
Comment 12 Unknown 2008-08-04 16:06:48 UTC
Why doesn't the installer ask?
As it is, I don't think the "one size fits all" approach to the netbeans.conf file is adequate.
It has the OS X menubar option while it's installed on Linux. And I always have to modify the
memory options since I run 64 bit java on a pc with a 64 bit Linux and 4 gigs of ram.