Bug 23004 - Unable to create a bookmark in a .class file
Summary: Unable to create a bookmark in a .class file
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-29 16:20 EDT by Jim DAnjou CLA
Modified: 2023-03-16 03:53 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim DAnjou CLA 2002-08-29 16:20:27 EDT
When viewing a .class file only breakpoints can be set. It is not possible to 
set a bookmark. It is not unusual to inspect Eclipse code in binary projects 
for learning or analysis purposes. Being able to bookmark the imbedded source 
code can be very helpful in recalling relevant visits to code of interest.
Comment 1 Michael Valenta CLA 2003-10-24 09:51:34 EDT
I just encountered this while trying to understand some complicated object 
interactions. It would have been extremely helpful if I could have added a 
bookmark to a .class file. Instead I had to resort to writting it on paper;-)
Comment 2 John-Mason P. Shackelford CLA 2003-12-23 14:00:30 EST
Another vote for this one!
Comment 3 Michael Scharf CLA 2004-02-12 15:46:37 EST
Indeed, thats very frustrating. It seems like there is no reason not to allow 
bookmarks in .class files....
Comment 4 Michael Scharf CLA 2004-06-22 09:27:41 EDT
Here is the trick I use to set "bookmarks" in .class files: I set a breakpoint 
and then disable it. That means I "abuse" the breakpoint view as bookmark 
view, because the bookmarks are almost useless because of this limitation. 
There are some disadvantages with this approach:
- you cannot add comments to breakpoints
- it clutters the breakpoint view
- you have to be carefull to not remove all breakpoints

It's a shame that this 2 years old request has not been implemented. It makes 
the bookmarks pretty useless (for java).

I'm sure many people are not using bookmrks because of this limitation. You 
simply give up trying to use bookmarks, if most of the time you can't find 
them in the context menu. Eclipse makes is almost invisible to a user if he is 
browsing a .class file or a .java file. From a user perspective, you have the 
feeling that breakpints "randomly" don't work.....
Comment 5 Ketan Padegaonkar CLA 2008-02-25 07:16:19 EST
Any ideas on this ? It's frustrating to copy line numbers and class names into a text editor to remember 'bookmarks'

I'm willing to contribute a patch, if someone provides a mylyn context, or point me to a place to start with. :)

Comment 6 Dani Megert CLA 2008-02-25 07:29:53 EST
The main problem here is that some JARs don't have an underlying resource. And those JARs which do have a underlying resource might get replaced when importing and hence bookmarks are lost again.
Comment 7 Michael Scharf CLA 2008-03-03 20:58:34 EST
maybe the bookmark concept needs to be enhanced so it can store a (virtual) path to a resource....