Community
Participate
Working Groups
Add Bookmark command should not be disabled when browsing source file attached to a class file.
Oops...Rafael moved this before I could add a comment. :-) Currently markers can only be added to resources in the workspace. I assume that a JAR file corresponds to an IResource and class files are taken care of by the Java model layer. Maybe this could be done by adding a marker to the JAR file with attributes indicating the file, line number, etc?
Post 3.0
It's already post 3.0. Could you please reopen this bug.
Reopened.
The resource of an IClassFile can be retrieved using getResource() (this returns the IFile corresponding to the jar file if it is an internal jar, or null if it is an external jar). Moving to JDT UI for comment.
Even if we create such a bookmark the bookmarks view must be able to handle those "encoded" bookmarks. Moving to Platform/UI to comment whether this is supported or not.
This is extremely annoying. I use breakpoint workingsets to maintain my bookmarks in class files. That's a hack but it wirks fine. Wit tha additional advantage that the breakpoints can be grouped using working sets. Disadvantage: you cannot bookmark interfaces :-/ Hmmm...why do markers work with breakpoints but not with bookmarks?
duplicates: bug 22284 bug 23004
*** This bug has been marked as a duplicate of 22284 ***