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.
Current provider doesn't pass states of control keys (Shift, Alt, Meta) which were pressed during moving mouse or clicking on code item. interface HyperlinkProvider2 { } the same as HyperlinkProvider + additional parameter in methods with states of conrol keys. Usecase: - we use the same provider for C/C++ code. In this languages there are different meaning of definition/declaration => need to destinguish the required user action. For example: Ctrl+click => go to definition of method Ctrl+Shift+click => go to declaration of method
As another solution we can allow to register different providers for different key bindings. As I see in implementation now only one key bindings is used for hyperlinks.
Added simplest prototype on branch "deimos" New file cvs/editor/libsrc/org/netbeans/lib/editor/hyperlink/spi/HyperlinkProviderEx.java Updated file cvs/editor/libsrc/org/netbeans/lib/editor/hyperlink/HyperlinkOperation.java 39d38 < import org.netbeans.lib.editor.hyperlink.spi.HyperlinkProviderEx; 197c196 < private void performAction(int position, int modifiers) { --- > private void performAction(int position) { 207,212c206 < // vv159170 workaround to pass mouse event modifiers when perform action < if (provider instanceof HyperlinkProviderEx) { < ((HyperlinkProviderEx)provider).performClickAction(component.getDocument(), position, modifiers); < } else { < provider.performClickAction(component.getDocument(), position); < } --- > provider.performClickAction(component.getDocument(), position); 340c334 < performAction(position, e.getModifiers() | e.getModifiersEx()); --- > performAction(position);
According to jlahoda there was an agreement to implement this request into 6.0.
Removed MARS keyword. A fix for this is not needed in 5.5.1.
moving opened issues from TM <= 6.1 to TM=Dev
no need anymore since we have now alternative hyperlink functionality