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 160485 - SPI to add source/Javadoc associations for a binary root on demand
Summary: SPI to add source/Javadoc associations for a binary root on demand
Status: RESOLVED DUPLICATE of bug 200698
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: API, UI
Depends on:
Blocks: 179396
  Show dependency tree
 
Reported: 2009-03-17 17:21 UTC by Jesse Glick
Modified: 2011-10-19 15:29 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-03-17 17:21:40 UTC
Currently there are various UIs for associating sources and/or Javadoc with binary roots, according to project or
library type. Inevitably there are special cases which do not cleanly fit into any of these UIs, or the UI is hard to
discover or requires too much clicking.

A user will most commonly encounter the lack of such an association when using the editor - primarily in the code
completion popup, but perhaps some other places as well, e.g. Javadoc window. I suggest that at this time, if no
association of either kind can be found, an SPI be consulted whereby modules could offer the ability to form
associations that would take effect immediately. Example impls (in lookup order):

1. apisupport.project could add associations for a module JAR part of some platform. (Not applicable to module
Class-Path extensions.)

2. project.ant could offer to make associations for a shared library, optionally copying source/Javadoc to the lib folder.

3. project.libraries would offer to make associations for a known global library.

4. project.libraries could offer to create a placeholder global library for an arbitrary binary JAR and then proceed as
in #3.

UI could be something like a hyperlink in the popup Javadoc window. E.g.

---%<---
No source code or Javadoc is known to match this compiled class.
<More Info>
<Create Library...>
---%<---
Comment 1 Jesse Glick 2009-03-17 17:24:06 UTC
And Maven support could offer to download sources and/or Javadoc for a library which is known to have them but which are
not yet available locally.
Comment 2 Jesse Glick 2011-10-19 15:29:24 UTC

*** This bug has been marked as a duplicate of bug 47498 ***
Comment 3 Jesse Glick 2011-10-19 15:29:53 UTC

*** This bug has been marked as a duplicate of bug 200698 ***