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: | Implement some support for Hyperlinks | ||
---|---|---|---|
Product: | debugger | Reporter: | Jan Jancura <jjancura> |
Component: | Code | Assignee: | issues@debugger <issues> |
Status: | CLOSED WONTFIX | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 31896 | ||
Bug Blocks: | 24758 |
Description
Jan Jancura
2002-06-19 16:56:13 UTC
Set target milestone to TBD Set target milestone to TBD *** Issue 11821 has been marked as a duplicate of this issue. *** reassigning to Tim as property editor's owner Please clarify what you need to do here. I do not entirely understand the "When the keyboard focus is on a cell with a hyperlink" text in issue 24758. What cell in what component? Is the issue that the editor component is not constructed until focus is set to it, or something else? Is it a use case of PropertySheet or PropertyPanel? I think this will be more possible with the propertysheet rewrite (editors will be able to receive and respond to the key/mouse event that instantiated them if they need to), but I'm still not sure what you're trying to do. The best way to implement this would be to add a hook method to the InplaceEditor interface in the propertysheet rewrite, or a hint that clicking on a property in the values column should call some method, rather than instantiate the inline editor component. If this is really needed, you should let me know soon, as InplaceEditor will become API in a few weeks. However, I still don't understand the use case. It seems like you want to be able to open a browser from a hyperlink in a property value? What are you trying to do? I'm tempted to close this issue as wontfix, since it seems way out of scope for a property sheet. Let me know, soon, why such functionality would be useful. Or do you just want a better custom editor for URLs? If so, this sounds like a duplicate of issue 6024. Let me know. What I need is the Hyperlink property editor look exactly as in Internet Exporer: blue underlined text, different mouse icon, and when you click on it the color is changed to red. When you click on it some method should be called. I am not able to implement it correctly using current support - see debugger window Watches view - type of some variable. Wow, that's pretty weird. I don't think such a property editor belongs in core or openide. I assume you're using PropertyPanel, not PropertySheet. Opening a browser when someone clicks a property in the property sheet would be weird and unexpected. Once the new property sheet is integrated, and I finish rewriting PropertyPanel to use its rendering/editing infrastructure, you will be able to do the following, which will solve the problem: - Create a custom hyperlink ExPropertyEditor - Create a custom Inplace editor implementing the InplaceEditor interface - Have your property editor call the new registerInplaceEditor method on the PropertyEnv in attachEnv(). - Return isPaintable=true, and paint an instance of the inplace editor from the property editor's paint() method - Let your inplace editor respond to mouse clicks however you want. Override InplaceEditor.handleInitialInputEvent() to get the mouse click event that instantiated the editor, and process it by opening the URL. I'm reassigning this to debugger - as far as I can tell, there are no use cases of this functionality outside the debugger module, and it would do more harm than good in core. WONTFIX - the hyperlinks are not needed IMHO. Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier. |