current Ctrl+mouse operation go to declaration
we (C++) need operation for "alternative" go to declaration, i.e. Alt+mouse
- Now, when macro is hovered in code (Ctrl+mouse) => it's "#define " text is displayed and hyperlink goes into #define
- for alternative hyperlink type (Alt+mouse) => macro expansion is shown in tooltip and hyperlink jumps into "Macro
Could be used for Java as well:
- tooltip for class could show "extends/implements" info
- hyperlink jumps into "Declaration View"
Please, evaluate. We need it for 7.0.
I can contribute, if needed.
Created attachment 76418 [details]
patch for Ctrl+Alt as combination for alternative hyperlink action
I'd like to ask to review small enhancement. It's binary and source compatible change.
Still the question
VV1: what is best name for new enum constant.
I've created patch with GO_TO_ALT_DECLARATION, but now think about ALT_HYPERLINK as name for alternative hyperlink name,
because don't want to tie it with "declaration"
The patch looks ok. I'm not sure about the name either, but GO_TO_ALT_DECLARATION sounds really weird. In no better name
comes up ALT_HYPERLINK could work. Thanks
if no objections, I will integrate tomorrow with ALT_HYPERLINK
for Mac shortcut is Meta+Alt, for others Ctrl+Alt
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Vladimir Voskresensky <firstname.lastname@example.org>
Log: fixed IZ#157705: need additional hyperlink type