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.
Summary: | Intent based Hyperlinks | ||
---|---|---|---|
Product: | platform | Reporter: | Jaroslav Havlin <jhavlin> |
Component: | Output Window | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | apireviews |
Priority: | P3 | Keywords: | API, API_REVIEW_FAST |
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
Proposed Patch v1
Proposed Patch |
Description
Jaroslav Havlin
2014-12-12 12:30:17 UTC
Created attachment 151071 [details]
Proposed Patch v1
Created attachment 151073 [details]
Proposed Patch
Small fixes.
Please review API change in module org.netbeans.api.io. Besides hyperlinks based on Runnables, let's support also hyperlinks that are defined by an Intent instance. Added new static methods to class Hyperlink: - Hyperlink Hyperlink.from(Intent intent) - Hyperlink Hyperlink.from(Intent intent, boolean important) As there are now two types of hyperlinks, which may be handled differently in some situations, we need some way to get info about type and internals of hyperlinks. Added new enum HyperlinkType and new methods to class Hyperlinks: - HyperlinkType Hyperlinks.getType(Hyperlink hyperlink) - Intent Hyperlinks.getIntent(Hyperlink hyperlink) - Runnable Hyperlinks.getRunnable(Hyperlink hyperlink) Thank you. If there are no objections, I will integrate the patch tomorrow. Thank you. Integrated as http://hg.netbeans.org/core-main/rev/a5739dc33f69. Thank you for reviewing. Integrated into 'main-silver', will be available in build *201412210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a5739dc33f69 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #249321: Intent based Hyperlinks |